chore: Fix github actions config

This commit is contained in:
Sam 2022-09-10 18:03:24 +02:00
parent ff368f8e09
commit 6df02fd7f5
No known key found for this signature in database
GPG Key ID: D004126FCD1A6DF0
3 changed files with 27 additions and 23 deletions

View File

@ -9,13 +9,12 @@ jobs:
runs-on: ubuntu-latest
environment: publish
steps:
- name: Setup Node
uses: actions/setup-node@v2
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14.x'
node-version: 16
registry-url: https://registry.npmjs.org/
- uses: actions/checkout@v2
- name: pnpm install
run: pnpm install --frozen-lockfile

View File

@ -9,22 +9,25 @@ on:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16, 18]
steps:
- name: Setup Node
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14.x'
- uses: actions/checkout@v2
- name: Install and build
run: pnpm install --frozen-lockfile
- name: Test packages
run: pnpm test
node-version: ${{ matrix.node }}
cache: 'pnpm'
- uses: pnpm/action-setup@v2
- run: pnpm install --frozen-lockfile
- run: pnpm test
- name: Upload coverage to codecov
run: bash <(curl -s https://codecov.io/bash)
- name: Upload coverage to codeclimate
uses: paambaati/codeclimate-action@v2.7.5
uses: paambaati/codeclimate-action@v3
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
coverageLocations: |
${{github.workspace}}/packages/**/coverage/lcov.info:lcov
continue-on-error: true

View File

@ -7,20 +7,22 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16, 18]
steps:
- name: Setup Node
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14.x'
- uses: actions/checkout@v2
- name: Install and build
run: pnpm install --frozen-lockfile
- name: Test packages
run: pnpm test
node-version: ${{ matrix.node }}
cache: 'pnpm'
- uses: pnpm/action-setup@v2
- run: pnpm install --frozen-lockfile
- run: pnpm test
- name: Upload coverage to codecov
run: bash <(curl -s https://codecov.io/bash)
- name: Upload coverage to codeclimate
uses: paambaati/codeclimate-action@v2.7.5
uses: paambaati/codeclimate-action@v3
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with: