mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-25 17:21:51 -07:00
Add CI workflow against xmonad latest commit (#429)
This commit is contained in:
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
@@ -14,18 +14,20 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
resolver: [lts-16, lts-15, lts-14]
|
||||
resolver: [lts-16, lts-15, lts-14, lts-12]
|
||||
yaml: ['stack.yaml', 'stack-master.yaml']
|
||||
|
||||
steps:
|
||||
- name: Clone project
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v1
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.stack
|
||||
key: ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}
|
||||
key: ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles(matrix.yaml) }}-${{ hashFiles('xmonad-contrib.cabal') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles(matrix.yaml) }}-
|
||||
${{ runner.os }}-${{ matrix.resolver }}-
|
||||
|
||||
- name: Build and run tests
|
||||
@@ -35,4 +37,4 @@ jobs:
|
||||
curl -sSL https://get.haskellstack.org/ | sh -s - -f
|
||||
sudo apt install -y libasound2 libasound2-dev libxrandr-dev libtinfo-dev
|
||||
sudo apt install -y libx11-dev libgmp-dev libxss-dev libxft-dev
|
||||
stack test --fast --no-terminal --resolver=${{ matrix.resolver }}
|
||||
stack --stack-yaml=${{ matrix.yaml }} test --fast --no-terminal --resolver=${{ matrix.resolver }}
|
||||
|
Reference in New Issue
Block a user