Migrate from Travis-CI to GitHub Actions

This commit is contained in:
Tim Byrne 2020-11-22 15:36:57 -06:00
parent 7628a1b61d
commit 34940a6240
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12
3 changed files with 36 additions and 8 deletions

20
.github/workflows/schedule.yml vendored Normal file
View File

@ -0,0 +1,20 @@
---
name: Scheduled Site Tests
on: # yamllint disable-line rule:truthy
schedule:
- cron: "0 0 1 * *" # Monthly
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: gh-pages
- run: >-
docker create -t
--name yadm-website
--entrypoint test/validate
yadm/jekyll:2019-10-17;
docker cp ./ yadm-website:/srv/jekyll
- name: Test Site
run: docker start yadm-website -a

16
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,16 @@
---
name: Tests
on: # yamllint disable-line rule:truthy
- push
- pull_request
- workflow_dispatch
jobs:
Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Tests
run: >-
docker run -t --rm
-v "$PWD:/yadm:ro"
yadm/testbed:2020-07-08

View File

@ -1,8 +0,0 @@
---
language: minimal
services:
- docker
before_install:
- docker pull yadm/testbed:2020-07-08
script:
- docker run -t --rm -v "$PWD:/yadm:ro" yadm/testbed:2020-07-08