Skip to content

Commit

Permalink
Build flow for GItHub Actions (#32)
Browse files Browse the repository at this point in the history
* Add build flow for github actions in atomic write

* Address PR comments

Remove travis.yml

---------

Co-authored-by: Alexander Mejia <[email protected]>
  • Loading branch information
Alex0jk and Alexander Mejia authored Jun 5, 2023
1 parent 0a31d7b commit 75aad6f
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 122 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# The present workflow was made based on the following references:
# - https://github.com/stackbuilders/hapistrano/blob/master/.github/workflows/build.yml
---
name: build

on: push

concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true

jobs:
haskell:
strategy:
matrix:
ghc:
- "8.10"
- "8.4.3"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Haskell tooling
uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: "3.6"
- name: Configure project
run: cabal configure --enable-tests
- name: Build project
run: cabal build
- name: Run tests
run: cabal test --test-show-details=direct
- name: Check documentation
run: cabal haddock
24 changes: 23 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
.stack-work/
dist
dist-*
cabal-dev
*.o
*.hi
*.hie
*.chi
*.chs.h
*.dyn_o
*.dyn_hi
.hpc
.hsenv
.cabal-sandbox/
cabal.sandbox.config
*.prof
*.aux
*.hp
*.eventlog
.stack-work/
cabal.project.local
cabal.project.local~
.HTF/
.ghc.environment.*
120 changes: 0 additions & 120 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/stackbuilders/atomic-write.svg?branch=master)](https://travis-ci.org/stackbuilders/atomic-write) [![Hackage version](https://img.shields.io/hackage/v/atomic-write.svg)](http://hackage.haskell.org/package/atomic-write)
[![Build](https://github.com/stackbuilders/atomic-write/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/stackbuilders/atomic-write/actions/workflows/build.yml)
[![Hackage version](https://img.shields.io/hackage/v/atomic-write.svg)](http://hackage.haskell.org/package/atomic-write)

# Atomic Write

Expand Down
2 changes: 2 additions & 0 deletions atomic-write.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ test-suite atomic-write-test
, text
, bytestring >= 0.10.4
, hspec

build-tools: hspec-discover >= 2.0 && < 3.0

default-language: Haskell2010
ghc-options: -Wall
Expand Down

0 comments on commit 75aad6f

Please sign in to comment.