Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 11 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,24 @@ on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: purescript-contrib/setup-purescript@main
with:
purescript: "unstable"
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: cachix/install-nix-action@v27
with:
node-version: "14.x"
extra_nix_config: |
extra-substituters = https://cache.iog.io https://purescript-lua.cachix.org
extra-trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= purescript-lua.cachix.org-1:yLs4ei2HtnuPtzLekOrW3xdfm95+Etw15gwgyIGTayA=

- name: Install dependencies
run: |
npm install -g bower
npm install
bower install --production
- name: Build
run: nix develop -c ./scripts/build

- name: Build source
run: npm run-script build
- name: Test
run: if [ -f scripts/test ]; then nix develop -c bash ./scripts/test; fi

- name: Run tests
run: |
bower install
npm run-script test --if-present
- name: Luacheck
run: nix develop -c luacheck --quiet --std lua51 --no-unused-args src/
Loading
Loading