Skip to content

infra: fix cd deplouy #5

infra: fix cd deplouy

infra: fix cd deplouy #5

Workflow file for this run

name: UN Environment
on:
pull_request:
branches:
- dev
jobs:
build:
name: "Test and build app"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x] # here you can add many different node versions
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependency
run: npm ci
- name: Setup .env
run: |
echo "VITE_BACKEND_URL=${{ secrets.VITE_BACKEND_URL }}" > .env
echo "VITE_BACKEND_VERSION=${{ secrets.VITE_BACKEND_VERSION }}" >> .env
# - name: Run test
# run: npm test # HERE run cypress
- name: Run lint
run: npm run lint
- name: Build app
run: git config --global user.email "${{ secrets.USER_EMAIL }}"
run: git config --global user.name "${{ secrets.USER_NAME }}"

Check failure on line 40 in .github/workflows/dev.yml

View workflow run for this annotation

GitHub Actions / UN Environment

Invalid workflow file

The workflow is not valid. .github/workflows/dev.yml (Line: 40, Col: 9): 'run' is already defined .github/workflows/dev.yml (Line: 41, Col: 9): 'run' is already defined
run: npm run generate
- name: Deploy app
run: npm run deploy