Skip to content
Open
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
8 changes: 7 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
cabal-file: hspec-golden.cabal
ubuntu-version: "latest"
macos-version: "13"
macos-version: "latest"
version: 0.1.7.0

build-and-test:
Expand All @@ -45,6 +45,12 @@ jobs:
ghc-version: ${{ matrix.ghc }}
cabal-version: "3.8"

- name: Install LLVM (macOS)
if: runner.os == 'macOS'
uses: KyleMayes/install-llvm-action@v2
with:
version: "14"

- name: Update cabal
run: cabal update

Expand Down
29 changes: 6 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Release

on:
push:
branches:
- main
tags:
- 'v*'

jobs:
release:
Expand All @@ -13,32 +13,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# Workaround for issue: https://github.com/cycjimmy/semantic-release-action/issues/159
# Had to pin to version 14
- name: "Pin node version"
uses: actions/setup-node@v2
with:
node-version: '14'

# Use haskell environment to run cabal configure needed for semantic-release-hackage
- name: Setup Haskell
id: setup-haskell-cabal
uses: haskell-actions/setup@v2
with:
ghc-version: "9.0"
cabal-version: "3.8"

- name: Semantic Release
run: cabal configure --enable-tests
- name: Build source distribution
run: cabal sdist

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/github
semantic-release-hackage@1.1.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HACKAGE_TOKEN: ${{ secrets.HACKAGE_TOKEN }}
- name: Upload to Hackage
run: cabal upload --publish --username=stackbuilders --password=${{ secrets.HACKAGE_TOKEN }} dist-newstyle/sdist/*.tar.gz
18 changes: 0 additions & 18 deletions .releaserc

This file was deleted.

2 changes: 1 addition & 1 deletion hspec-golden.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack

name: hspec-golden
version: 0.0.0.0
version: 0.2.2.0
synopsis: Golden tests for hspec
description: .
Golden tests store the expected output in a separated file. Each time a golden test
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: hspec-golden
version: 0.0.0.0 # We use semantic-release to version this package
version: 0.2.2.0
github: "stackbuilders/hspec-golden"
license: MIT
author: "Stack Builders"
Expand Down
Loading