Skip to content

Commit

Permalink
chore: finished GitHub Actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
GersonDantas committed Dec 26, 2023
1 parent 7451ca1 commit ede7b9c
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,25 @@ on:
branches:
- master
jobs:
cypress-run:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: npm i
- name: Run ESLint
run: eslint 'src/**' --fix

unit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: npm i
- name: Run coveralls code
run: npm run test:coveralls

e2e-tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand All @@ -19,15 +37,10 @@ jobs:
wait-on: 'http://localhost:8080'
wait-on-timeout: 120

Deploy-Production:
vercel_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: npm i
- name: Run coveralls code
run: npm run test:coveralls

- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
Expand All @@ -36,3 +49,4 @@ jobs:
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 comments on commit ede7b9c

Please sign in to comment.