Skip to content

Commit

Permalink
Modernize CI
Browse files Browse the repository at this point in the history
  • Loading branch information
henryruhs committed Nov 8, 2023
1 parent 3ca25d3 commit af7abd2
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,48 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Node 16
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
- 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 18
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
- run: npm install
- run: npm run build
test:
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 18
uses: actions/setup-node@v4
with:
node-version: 16.17.1
node-version: 18
- run: npm install
- run: npm run test
report:
needs: test
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 18
uses: actions/setup-node@v4
with:
node-version: 16.17.1
node-version: 18
- 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 }}

0 comments on commit af7abd2

Please sign in to comment.