Restore Halogen recipes #36
Workflow file for this run
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: Run PR Tests | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# We use `npm install` rather than `setup-purescript` | |
- name: Cache PureScript dependencies | |
uses: actions/cache@v2 | |
with: | |
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }} | |
path: | | |
.spago | |
output | |
- name: Set up Node toolchain | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "18.x" | |
- name: Cache NPM dependencies | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install NPM dependencies | |
run: npm install | |
- name: Test all makefile commands | |
run: make testAllCommands | |
- name: Check if readme was updated | |
run: diff README.md <(scripts/generateRecipeTable.sh) | |
- name: Run CI tests | |
run: make testAllCI | |
- name: Check PureScript code is formatted | |
run: make formatCheck |