🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

-rw-r--r-- .github/workflows/ci.yaml


      1 name: Build and Test
      2 
      3 on:
      4   push:
      5     branches: [ master ]
      6   pull_request:
      7     branches: [ master ]
      8 
      9 jobs:
     10   build-and-test:
     11     runs-on: ubuntu-latest
     12 
     13     steps:
     14     - uses: actions/checkout@v4
     15       with:
     16         # Fetch all branches and tags so the tests can see them.
     17         fetch-depth: 0
     18 
     19     - uses: haskell-actions/setup@v2
     20       with:
     21         enable-stack: true
     22 
     23     - uses: actions/cache@v4
     24       with:
     25         path: ~/.stack/
     26         key: ${{ runner.os }}-${{ hashFiles('**/stack.yaml.lock') }}
     27 
     28     - name: Build
     29       run: |
     30         stack --no-terminal build
     31 
     32     - name: Run tests
     33       run: |
     34         bash test/test.sh
     35 
     36     - name: Check doc generation works
     37       run: |
     38         stack run -- -c ./config.dhall -q
     39