From 3bafe2abb25f5ba11adb459c48520246b2c2054c Mon Sep 17 00:00:00 2001 From: groenroos Date: Wed, 4 Aug 2021 01:18:13 +0100 Subject: [PATCH 1/2] More robust workflow --- .github/workflows/main.yml | 58 ++++++++++++++++++++++++++++++++------ 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c4ff832..0bf0d89 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,27 +7,69 @@ on: branches: [ master ] jobs: - test: - name: Run tests and linter + lint: + name: Run linter runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: '16' - name: Install dependencies - run: yarn install - - - name: Install Sapling - run: npx npm-install-peers + run: npm ci - name: Run linter run: npm run lint + test-node-16: + name: Test Node.js v16 + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16' + + - name: Install dependencies + run: npm ci + - name: Run test run: npm run test:report - name: Report coverage - run: npm run test:send \ No newline at end of file + run: npm run test:send + + test-node-14: + name: Test Node.js v14 + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: npm ci + + - name: Run test + run: npm run test + + test-node-12: + name: Test Node.js v12 + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '12' + + - name: Install dependencies + run: npm ci + + - name: Run test + run: npm run test From 1b79ad1938ed76405a28f60a03a65217a77911b8 Mon Sep 17 00:00:00 2001 From: groenroos Date: Wed, 4 Aug 2021 22:11:21 +0100 Subject: [PATCH 2/2] Install peer deps --- .github/workflows/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0bf0d89..1ca9387 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,6 +55,9 @@ jobs: - name: Install dependencies run: npm ci + - name: Install peer dependencies + run: npx npm-install-peers + - name: Run test run: npm run test @@ -71,5 +74,8 @@ jobs: - name: Install dependencies run: npm ci + - name: Install peer dependencies + run: npx npm-install-peers + - name: Run test run: npm run test