Integration runner (#18) #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.elm | |
~/.npm | |
**/elm-stuff | |
**/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: jorelali/setup-elm@v5 | |
- run: npm install | |
- name: Run Unit Tests | |
run: npm test | |
integration: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./integration | |
steps: | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.elm | |
~/.npm | |
**/elm-stuff | |
**/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: jorelali/setup-elm@v5 | |
- run: npm install | |
- name: Run Integration Tests | |
run: npm run server & npm run test:ci | |
review: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.elm | |
~/.npm | |
**/elm-stuff | |
**/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: jorelali/setup-elm@v5 | |
- run: npm install | |
- name: Verify Docs Compile | |
run: npm run docs:verify | |
- name: Run Elm Review | |
run: npm run review:ci | |
runner: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.npm | |
**/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- run: npm install | |
- name: Verify Runner Compiles | |
run: npm run runner:compile |