Skip to content

Commit

Permalink
Merge pull request #14 from pbredenberg/pb/ci-migrate-to-github-actions
Browse files Browse the repository at this point in the history
ci: add GitHub Actions configuration
  • Loading branch information
onebytegone committed Apr 12, 2023
2 parents f4c1908 + 8b00859 commit 4a80bbb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 17 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,38 @@
name: CI

on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history
-
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm i -g npm@8.5.5
- run: npm ci
- run: npm run standards
test:
needs: [ build ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [ 14, 16, 'lts/*', 'latest' ]
steps:
- uses: actions/checkout@v3
-
name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g npm@8.5.5
- run: npm ci # Reinstall the dependencies to ensure they install with the current version of node
- run: npm test
- name: Coveralls
uses: coverallsapp/github-action@v1
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

0 comments on commit 4a80bbb

Please sign in to comment.