Skip to content

Commit

Permalink
ci: update github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Feb 26, 2024
1 parent 10512c2 commit aff0d19
Showing 1 changed file with 18 additions and 29 deletions.
47 changes: 18 additions & 29 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,28 @@
name: Actions Status
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: build

on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]
branches:
- master
env:
CI: true

jobs:
run:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node: [10, 12, 14]
os: [ubuntu-latest]
node-version: [14, 16, 18]

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set Node.js version
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install npm dependencies
run: npm ci

- name: Run tests
run: npm run test

- name: Run Coveralls
uses: coverallsapp/github-action@master
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
env:
CI: true

0 comments on commit aff0d19

Please sign in to comment.