Skip to content

Commit 7d56407

Browse files
committed
Migrate CI from travis to github actions.
1 parent e5bb361 commit 7d56407

File tree

3 files changed

+55
-11
lines changed

3 files changed

+55
-11
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
9+
jobs:
10+
main:
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
node-version: [14.x]
17+
18+
env:
19+
ELM_HOME: '${{ github.workspace }}/elm-stuff/elm-home'
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- uses: actions/setup-node@v1
25+
with:
26+
node-version: "${{ matrix.node-version }}"
27+
28+
- name: Cache node_modules
29+
id: cache-node_modules
30+
uses: actions/cache@v2
31+
with:
32+
path: node_modules
33+
key: node_modules-${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
34+
35+
- name: Cache ELM_HOME
36+
uses: actions/cache@v2
37+
with:
38+
path: '${{ env.ELM_HOME }}'
39+
key: elm-${{ matrix.os }}-${{ hashFiles('elm-tooling.json', 'elm/**/elm.json', 'example-*/**/elm.json', 'tests/**/elm.json') }}
40+
41+
- name: Install elm-tooling CLI
42+
if: steps.cache-node_modules.outputs.cache-hit != 'true'
43+
run: npm install --no-save elm-tooling
44+
45+
- name: elm-tooling install
46+
run: npx --no-install elm-tooling install
47+
48+
- name: test
49+
run: npx -c ./tests/run-tests.sh

.travis.yml

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

elm-tooling.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"tools": {
3+
"elm": "0.19.1",
4+
"elm-test-rs": "1.0.0"
5+
}
6+
}

0 commit comments

Comments
 (0)