diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..546b7e8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,12 @@ +on: [push] +name: build +jobs: + runhaskell: + name: Hello World + runs-on: ubuntu-latest # or macOS-latest, or windows-latest + steps: + - uses: actions/checkout@v3 + - uses: haskell/actions/setup@v2 + with: + enable-stack: true + - run: stack build diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index bc43003..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -sudo: false - -language: generic - -cache: - directories: - - $HOME/.stack - -addons: - apt: - packages: - - libgmp-dev - -before_install: -- mkdir -p ~/.local/bin -- export PATH=$HOME/.local/bin:$PATH -- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' - -install: -- stack --no-terminal --install-ghc test --only-dependencies - -script: -- stack --no-terminal test --haddock --no-haddock-deps diff --git a/README.md b/README.md index cf1d279..c7035c4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# tetris [![Build Status](https://travis-ci.org/samtay/tetris.svg?branch=master)](https://travis-ci.org/samtay/tetris) +# tetris [![Build Status](https://github.com/samtay/tetris/actions/workflows/ci.yml/badge.svg)](https://github.com/samtay/tetris/actions/workflows/ci.yml) A terminal interface for Tetris