Add github CI integration

This commit is contained in:
Sibi Prabakaran 2020-12-11 17:49:45 +05:30
parent 96d4f1fe85
commit 0a040cbc96
No known key found for this signature in database
GPG Key ID: D19E3E0EBB557613
2 changed files with 39 additions and 2 deletions

39
.github/workflows/tests.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: Stack Tests
on:
pull_request:
push:
branches:
- master
jobs:
build:
name: CI
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
resolver: [lts-16, lts-15, lts-14]
steps:
- name: Clone project
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.resolver }}-${{ hashFiles('stack.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.resolver }}-
- name: Build and run tests
shell: bash
run: |
set -ex
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 }}

View File

@ -1,7 +1,5 @@
# xmonad: A Tiling Window Manager
[![Build Status](https://travis-ci.org/xmonad/xmonad.svg?branch=master)](https://travis-ci.org/xmonad/xmonad)
[xmonad][] is a tiling window manager for X. Windows are arranged
automatically to tile the screen without gaps or overlap, maximising
screen use. Window manager features are accessible from the keyboard: