From 7e2a0f8435e6bfbbe80989bea5aaf7d36c820bc8 Mon Sep 17 00:00:00 2001 From: Tim McGilchrist Date: Thu, 2 Jun 2022 10:41:37 +1000 Subject: [PATCH 1/2] Create dependabot.yml --- .github/dependabot.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..0123a28 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" From 1c3199e5f1fbf5a3cb3ab99ac50e26d156b5d929 Mon Sep 17 00:00:00 2001 From: Tim McGilchrist Date: Thu, 2 Jun 2022 10:42:28 +1000 Subject: [PATCH 2/2] Create ci.yaml --- .github/workflows/ci.yaml | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..10ef0c3 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,49 @@ +name: CI +on: + push: + branches: + - master + pull_request: + types: + - opened + - synchronize +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [macos-latest, ubuntu-latest] + cabal: ["3.4"] + ghc: ["8.10.7"] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v3 + - uses: haskell/actions/setup@v2 + id: setup-haskell-cabal + with: + ghc-version: ${{ matrix.ghc }} + cabal-version: ${{ matrix.cabal }} + - name: Cabal Update + run: | + cabal v2-update + cabal v2-freeze $CONFIG + - uses: actions/cache@v3.0.3 + with: + path: | + ${{ steps.setup-haskell-cabal.outputs.cabal-store }} + dist-newstyle + key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} + restore-keys: | + ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}- + - name: Build all + run: | + cabal build all + cabal sdist all + - name: Run tests + run: | + cabal test all + - name: Build haddock + run: | + cabal haddock all