Skip to content

Commit

Permalink
Merge pull request #1002 from moment/migrate-gh-actions
Browse files Browse the repository at this point in the history
Migrate CI from Travis to GitHub Actions
  • Loading branch information
gilmoreorless committed Sep 14, 2022
2 parents 5162f1d + 8cf1d7a commit 31d5fea
Show file tree
Hide file tree
Showing 4 changed files with 5,316 additions and 783 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI tests

on:
push:
branches:
- master
- develop
- release*
pull_request:

jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
# Use the latest version of Node.js, plus the 3 most recent LTS lines
node-version:
- latest
- lts/*
- lts/-1
- lts/-2 # Probably EOL depending on release schedules, but still good to test

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

0 comments on commit 31d5fea

Please sign in to comment.