Skip to content

Commit

Permalink
updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kochie committed Feb 28, 2023
1 parent e673616 commit d1d1fd6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 6 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,22 @@ jobs:
steps:
- uses: actions/checkout@v1

- uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: latest
run_install: false

- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
cache: 'pnpm'

- name: run coverage
run: |
npm ci
npm run test-coverage
pnpm install
pnpm run test-coverage
- name: Coveralls
uses: coverallsapp/github-action@master
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/jest-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: latest
run_install: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
cache: 'pnpm'
- run: pnpm install
- run: pnpm test
14 changes: 12 additions & 2 deletions .github/workflows/next-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,15 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: latest
run_install: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install
- run: pnpm run build

0 comments on commit d1d1fd6

Please sign in to comment.