Skip to content

Commit 17632c6

Browse files
Migrate from Travis CI to GitHub Actions (#281)
* Convert from travis to github actions * Use npm install Co-authored-by: Miles Frain <[email protected]>
1 parent a69f835 commit 17632c6

File tree

2 files changed

+50
-16
lines changed

2 files changed

+50
-16
lines changed

.github/workflows/tests.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Run PR Tests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
# We use `npm install` rather than `setup-purescript`
14+
15+
- name: Cache PureScript dependencies
16+
uses: actions/cache@v2
17+
with:
18+
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
19+
path: |
20+
.spago
21+
output
22+
23+
- name: Set up Node toolchain
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: "12.x"
27+
28+
- name: Cache NPM dependencies
29+
uses: actions/cache@v2
30+
env:
31+
cache-name: cache-node-modules
32+
with:
33+
path: ~/.npm
34+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
35+
restore-keys: |
36+
${{ runner.os }}-build-${{ env.cache-name }}-
37+
${{ runner.os }}-build-
38+
${{ runner.os }}-
39+
40+
- name: Install NPM dependencies
41+
run: npm install
42+
43+
- name: Test all makefile commands
44+
run: make testAllCommands
45+
46+
- name: Check if readme was updated
47+
run: diff README.md <(scripts/generateRecipeTable.sh)
48+
49+
- name: Run CI tests
50+
run: make testAllCI

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)