Skip to content

Commit

Permalink
Merge pull request #152 from alxndrsn/github-actions
Browse files Browse the repository at this point in the history
ci: move to github actions
  • Loading branch information
brianc committed Mar 27, 2024
2 parents 37606f8 + 47def6b commit 6e1080a
Show file tree
Hide file tree
Showing 5 changed files with 5,505 additions and 9 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,69 @@
name: CI

on: [push, pull_request]

permissions:
contents: read

jobs:
lint:
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- run: yarn install # --frozen-lockfile TODO get this option working
- run: yarn lint
test-js:
timeout-minutes: 2
runs-on: ubuntu-latest
needs: lint
strategy:
fail-fast: false
matrix:
node:
- '12'
- '14'
- '16'
- '18'
- '20'
name: test js - node v${{ matrix.node }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: yarn
- run: yarn install # --frozen-lockfile TODO get this option working
- run: yarn test
test-ts:
timeout-minutes: 2
runs-on: ubuntu-latest
needs: lint
strategy:
fail-fast: false
matrix:
node:
- '12'
- '14'
- '16'
- '18'
- '20'
name: test ts - node v${{ matrix.node }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: yarn
- run: yarn install # --frozen-lockfile TODO get this option working
- run: yarn test-ts
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
coverage/
node_modules
.nyc_output/
/.yarn/
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions .yarnrc.yml
@@ -0,0 +1 @@
nodeLinker: node-modules

0 comments on commit 6e1080a

Please sign in to comment.