GitHub Actions

MEMO

設定ファイル

name: cabal

on: [pull_request]

jobs:
  build:
    runs-on: ubuntu-18.04

    steps:
    - uses: actions/checkout@v1
    - uses: actions/setup-haskell@v1
      with:
        ghc-version: '8.6.5'
        cabal-version: '3.0'

    - name: Display ghc version
      run: ghc -V

    - name: Display cabal version
      run: cabal -V

    - name: Display the path
      run: echo ${PATH}

    - name: cabal v2-update
      run: cabal v2-update

    - name: Install dependencies
      run: apt-get update && apt-get install libicu-dev -y && cabal v2-install --lib --only-dependencies

    - name: Build & Test
      run: |
        cabal v2-install tasty-discover
        cabal v2-build all
        cabal v2-test all

良く使うアクション等

参考になりそうな設定ファイル

参考リソース

Last updated