* Re-base onto upstream master * Use os over operating-system per json schema suggestion * Upgrade dependencies * Update action.yml syntax * Restructure repo on latest typescript-action * Update workflow.yml to use same node version as action.yml * Pull in improvements from open PRs. Fix package.json scripts * Type function return arguments * Don't eslint automatic formatting changes * Initial implementation of ghc+cabal install for linux/mac/windows * Update README * Fix cabal version in action.yml * Implement initial simplistic test suite * Test action with CI * Use chocolatey directly to install ghc and cabal * Try pre-installed tool on linux first * Clean up documentation * Expand README * Test super old GHC on ubuntu * Implement support for stack * Update documentation about Stack support * Test stack install in Github Actions CI authored-by: Jared Weakly <jweakly@galois.com>
63 lines
1.6 KiB
YAML
63 lines
1.6 KiB
YAML
name: Main workflow
|
|
on: [push]
|
|
jobs:
|
|
test:
|
|
name: Test ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12.x
|
|
# http://www.tiernok.com/posts/2019/faster-npm-installs-during-ci/
|
|
- run: npm ci --prefer-offline --no-audit --progress=false
|
|
- run: npm run pre-push
|
|
|
|
install-haskell:
|
|
name: Test GHC Install ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
ghc: ['8.8.3']
|
|
cabal: ['3.0.0.0']
|
|
include:
|
|
- os: ubuntu-latest
|
|
ghc: '7.10.3'
|
|
cabal: '3.0.0.0'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v1
|
|
if: matrix.os == 'macOS-latest' || matrix.ghc == '7.10.3'
|
|
with:
|
|
path: ~/.ghcup
|
|
key: ${{ runner.os }}-${{ matrix.ghc }}-ghcup
|
|
|
|
- uses: ./
|
|
with:
|
|
ghc-version: ${{ matrix.ghc }}
|
|
cabal-version: ${{ matrix.cabal }}
|
|
- run: runhaskell __tests__/hello.hs
|
|
|
|
install-stack:
|
|
name: Test Stack Install ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
stack: ['latest', '1.9.1']
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ./
|
|
with:
|
|
stack-version: ${{ matrix.stack }}
|
|
stack-no-global: true
|
|
- run: stack
|