Skip to content

Test CI job

Test CI job #1

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

`pull_request push` is not a valid event name
# Trigger the workflow on push or pull request
on:
pull_request
push
jobs:
cabal:
name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
cabal: ["3.8"]
ghc:
- "9.4"
steps:
- uses: actions/checkout@v3
if: github.event.action == 'opened' || github.event.action == 'synchronize'
- uses: haskell/actions/setup@main
id: setup-haskell-cabal
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: Prepare environment
run: echo "$HOME/.ghcup/bin" >> $GITHUB_PATH
- name: Build
run: |
cabal build all