Skip to content

Commit 31d5fea

Browse files
Merge pull request #1002 from moment/migrate-gh-actions
Migrate CI from Travis to GitHub Actions
2 parents 5162f1d + 8cf1d7a commit 31d5fea

File tree

4 files changed

+5316
-783
lines changed

4 files changed

+5316
-783
lines changed

.github/workflows/tests.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
- release*
9+
pull_request:
10+
11+
jobs:
12+
test:
13+
name: Run tests
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
# Use the latest version of Node.js, plus the 3 most recent LTS lines
18+
node-version:
19+
- latest
20+
- lts/*
21+
- lts/-1
22+
- lts/-2 # Probably EOL depending on release schedules, but still good to test
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
cache: npm
32+
33+
- name: Install dependencies
34+
run: npm ci
35+
36+
- name: Run tests
37+
run: npm test

.travis.yml

-10
This file was deleted.

0 commit comments

Comments
 (0)