mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 04:31:52 -07:00
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
jobs:
|
|
build:
|
|
name: CI
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
resolver:
|
|
- nightly
|
|
- lts-17
|
|
- 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@v2
|
|
with:
|
|
path: ~/.stack
|
|
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: Install dependencies
|
|
run: |
|
|
set -ex
|
|
sudo apt install -y \
|
|
libx11-dev \
|
|
libxft-dev \
|
|
libxrandr-dev \
|
|
libxss-dev \
|
|
#
|
|
- name: Build and run tests
|
|
run: |
|
|
set -ex
|
|
stack --stack-yaml=${{ matrix.yaml }} test --fast --no-terminal --resolver=${{ matrix.resolver }}
|