Skip to content

Commit

Permalink
Add base CI/CD
Browse files Browse the repository at this point in the history
run lint and build app
  • Loading branch information
shortSparrow authored Jan 30, 2024
1 parent 4eb1aa2 commit dd83fac
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: UN Environment

on:
pull_request:
branches:
- qa
- main
- test-1
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.6.1] # here you can add many different node versions

steps:
- uses: actions/checkout@v3
- 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 install

- 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: npm run build

# - name: Deploy app
# TODO

0 comments on commit dd83fac

Please sign in to comment.