GitHub

@@ -13,13 +13,32 @@ on:

1313

jobs:

1414

test:

1515

runs-on: ${{ matrix.os }}

16-1716

strategy:

1817

fail-fast: false

1918

matrix:

2019

os: [ubuntu-latest, macos-latest, windows-latest]

2120

node: ['18', '20']

21+

steps:

22+

- uses: actions/checkout@v3

23+

- uses: actions/setup-node@v3

24+

with:

25+

node-version: ${{ matrix.node }}

26+

cache: 'npm'

27+

- run: npm ci

28+

- run: npm test

29+

- uses: actions/upload-artifact@v3

30+

if: matrix.os == 'ubuntu-latest' && matrix.node == '18'

31+

with:

32+

name: coverage-${{ matrix.os }}-${{ matrix.node }}

33+

path: coverage/

223435+

build:

36+

runs-on: ${{ matrix.os }}

37+

strategy:

38+

fail-fast: false

39+

matrix:

40+

os: [ubuntu-latest, macos-latest, windows-latest]

41+

node: ['18', '20']

2342

steps:

2443

- uses: actions/checkout@v3

2544

- uses: actions/setup-node@v3

@@ -28,8 +47,20 @@ jobs:

2847

cache: 'npm'

29483049

- run: npm ci

31-

- run: npm test

32-

- run: npm run build

50+

- run: npm build

51+52+

coverage:

53+

runs-on: ubuntu-latest

54+

needs: [test]

55+

if: ${{ success() && github.actor != 'dependabot[bot]' }}

56+

steps:

57+

- uses: actions/checkout@v3

58+

- uses: actions/download-artifact@v3

59+

with:

60+

name: coverage-ubuntu-latest-18

61+

- uses: paambaati/codeclimate-action@v5.0.0

62+

env:

63+

CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

33643465

publish:

3566

needs: test

Read the original on github.com ↗