switch to github actions from travis

This commit is contained in:
Jörg Thalheim 2020-11-29 17:28:00 +01:00
parent 0ea1b12b83
commit b3a39410e7
No known key found for this signature in database
GPG key ID: 003F2096411B5F92
8 changed files with 56 additions and 52 deletions

12
.github/workflows/pr.yml vendored Normal file
View file

@ -0,0 +1,12 @@
name: "Test"
on:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: ./ci/test.sh

22
.github/workflows/update.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: "Test"
on:
workflow_dispatch:
schedule:
# chosen by fair dice rolling
- cron: '05 4 * * *'
push:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: ./ci/test.sh
- name: update nur / nur-combined
run: ./ci/update-nur.sh
- name: update nur-search/data/packages.json
run: ./ci/update-nur-search.sh