From 774ce8baf8c0b655971c2ce0fa86c6487a61ff75 Mon Sep 17 00:00:00 2001 From: henryruhs Date: Wed, 8 Nov 2023 17:12:57 +0100 Subject: [PATCH] Modernize CI --- .github/workflows/ci.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60fc2e4..38f93e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,34 +7,34 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 - - name: Set up Node 16 - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - name: Set up Node 20 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm install - run: npm run lint build: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 - - name: Set up Node 16 - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - name: Set up Node 20 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm install - run: npm run build test: runs-on: ubuntu-latest strategy: matrix: - node-version: [ 16, 17, 18, 19 ] + node-version: [ 16, 17, 18, 19, 20, 21 ] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm install @@ -44,14 +44,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 - - name: Set up Node 16 - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - name: Set up Node 20 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm install - run: npx c8 --reporter=lcov mocha - name: Report to Coveralls - uses: coverallsapp/github-action@v1.1.2 + uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }}