git.iko.soy/typeable/elm-ui
on master help sign in
Merge branch 'master' of https://github.com/mdgriffith/elm-ui
ee78b03Matthew Griffith
.github/workflows/tests.yml+14−11
@@ -1,29 +1,35 @@
1name: Test Suite
1name: Test Suite
2
2
3−# Controls when the action will run. Triggers the workflow on push or pull request
4−# events but only for the master branch
5on:
3on:
6 push:
4 push:
7 branches: [ master ]
5 branches: [ master ]
8 pull_request:
6 pull_request:
9 branches: [ master ]
7 branches: [ master ]
10
8
11−# A workflow run is made up of one or more jobs that can run sequentially or in parallel
9+
12jobs:
10jobs:
13− # This workflow contains a single job called "build"
14 testing:
11 testing:
15− # The type of runner that the job will run on
16 runs-on: ubuntu-latest
12 runs-on: ubuntu-latest
17
13
18− # Steps represent a sequence of tasks that will be executed as part of the job
19− steps:
14+ steps:
20− # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21 - uses: actions/checkout@v2
15 - uses: actions/checkout@v2
22
16
23 - name: Setup node
17 - name: Setup node
24 uses: actions/setup-node@v1
18 uses: actions/setup-node@v1
25 with:
19 with:
26 node-version: 10
20 node-version: 10
21+
22+ - name: Cache node modules
23+ uses: actions/cache@v1
24+ env:
25+ cache-name: cache-node-modules
26+ with:
27+ path: node_modules
28+ key: ${{ runner.os }}-testing-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
29+ restore-keys: |
30+ ${{ runner.os }}-testing-${{ env.cache-name }}-
31+ ${{ runner.os }}-testing-
32+ ${{ runner.os }}-
27
33
28 - name: Install
34 - name: Install
29 run: npm install
35 run: npm install
@@ -31,9 +37,6 @@ jobs:
31 - name: Elm test suite
37 - name: Elm test suite
32 run: npm run test
38 run: npm run test
33
39
34− - name: Rendering test suite
35− run: npm run test-render
36−
37 - uses: webfactory/ssh-agent@v0.2.0
40 - uses: webfactory/ssh-agent@v0.2.0
38 with:
41 with:
39 ssh-private-key: ${{ secrets.ELM_UI_TESTING_SSH_PRIVATE_KEY }}
42 ssh-private-key: ${{ secrets.ELM_UI_TESTING_SSH_PRIVATE_KEY }}