Skip to content

Commit

Permalink
chore: update ci action
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Mar 5, 2023
1 parent 20f9962 commit 44131a4
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,22 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'npm'

- name: Install dependencies
run: |
yarn --ignore-engines --frozen-lockfile --ignore-scripts
run: npm ci

- name: Build
run: yarn build
run: npm run build

- name: Lint code
run: yarn lint
run: npm run lint

- name: Test code
run: yarn test
run: npm run test

- name: Report coverage
uses: coverallsapp/github-action@v1
Expand Down

0 comments on commit 44131a4

Please sign in to comment.