Skip to content

Commit

Permalink
updates github action
Browse files Browse the repository at this point in the history
  • Loading branch information
EvandroLG committed Jan 30, 2023
1 parent ecdcb7d commit fcf0c05
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,27 @@ jobs:
- name: Begin CI...
uses: actions/checkout@v2

- name: Use Node 14.15.0
- name: Use Node v18.13.0
uses: actions/setup-node@v1
with:
node-version: 14.15.0

- name: Use cached node_modules
uses: actions/cache@v1
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
nodeModules-
node-version: 18.13.0

- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm ci
env:
CI: true

- name: Lint
run: yarn lint
run: npm run lint
env:
CI: true

- name: Test
run: yarn test --ci --coverage --maxWorkers=2
run: npm run test --ci --coverage --maxWorkers=2
env:
CI: true

- name: Build
run: yarn build
run: npm run build
env:
CI: true

0 comments on commit fcf0c05

Please sign in to comment.