Merge GitHub Actions updates
This commit is contained in:
commit
c79a67208c
4 changed files with 48 additions and 16 deletions
20
.github/workflows/schedule.yml
vendored
Normal file
20
.github/workflows/schedule.yml
vendored
Normal 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
16
.github/workflows/test.yml
vendored
Normal 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
|
|
@ -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
|
20
README.md
20
README.md
|
@ -8,10 +8,10 @@
|
|||
[![Master Update][master-date]][master-commits]
|
||||
[![Develop Update][develop-date]][develop-commits]
|
||||
[![Website Update][website-date]][website-commits]<br />
|
||||
[![Master Status][master-badge]][travis-ci]
|
||||
[![Develop Status][develop-badge]][travis-ci]
|
||||
[![GH Pages Status][gh-pages-badge]][travis-ci]
|
||||
[![Dev Pages Status][dev-pages-badge]][travis-ci]
|
||||
[![Master Status][master-badge]][workflow-master]
|
||||
[![Develop Status][develop-badge]][workflow-develop]
|
||||
[![GH Pages Status][gh-pages-badge]][workflow-gh-pages]
|
||||
[![Dev Pages Status][dev-pages-badge]][workflow-dev-pages]
|
||||
|
||||
[https://yadm.io/][website-link]
|
||||
|
||||
|
@ -29,17 +29,17 @@ Features, usage, examples and installation instructions can be found on the
|
|||
[GnuPG]: https://gnupg.org/
|
||||
[aur-badge]: https://img.shields.io/aur/version/yadm-git.svg
|
||||
[aur-link]: https://aur.archlinux.org/packages/yadm-git
|
||||
[dev-pages-badge]: https://img.shields.io/travis/com/TheLocehiliosan/yadm/dev-pages.svg?label=dev-pages
|
||||
[develop-badge]: https://img.shields.io/travis/com/TheLocehiliosan/yadm/develop.svg?label=develop
|
||||
[dev-pages-badge]: https://img.shields.io/github/workflow/status/TheLocehiliosan/yadm/Test%20Site/dev-pages?label=dev-pages
|
||||
[develop-badge]: https://img.shields.io/github/workflow/status/TheLocehiliosan/yadm/Tests/develop?label=develop
|
||||
[develop-commits]: https://github.com/TheLocehiliosan/yadm/commits/develop
|
||||
[develop-date]: https://img.shields.io/github/last-commit/TheLocehiliosan/yadm/develop.svg?label=develop
|
||||
[dotfiles]: https://en.wikipedia.org/wiki/Hidden_file_and_hidden_directory
|
||||
[gh-pages-badge]: https://img.shields.io/travis/com/TheLocehiliosan/yadm/gh-pages.svg?label=gh-pages
|
||||
[gh-pages-badge]: https://img.shields.io/github/workflow/status/TheLocehiliosan/yadm/Test%20Site/gh-pages?label=gh-pages
|
||||
[homebrew-badge]: https://img.shields.io/homebrew/v/yadm.svg
|
||||
[homebrew-link]: https://formulae.brew.sh/formula/yadm
|
||||
[license-badge]: https://img.shields.io/github/license/TheLocehiliosan/yadm.svg
|
||||
[license-link]: https://github.com/TheLocehiliosan/yadm/blob/master/LICENSE
|
||||
[master-badge]: https://img.shields.io/travis/com/TheLocehiliosan/yadm/master.svg?label=master
|
||||
[master-badge]: https://img.shields.io/github/workflow/status/TheLocehiliosan/yadm/Tests/master?label=master
|
||||
[master-commits]: https://github.com/TheLocehiliosan/yadm/commits/master
|
||||
[master-date]: https://img.shields.io/github/last-commit/TheLocehiliosan/yadm/master.svg?label=master
|
||||
[obs-badge]: https://img.shields.io/badge/OBS-v2.5.0-blue
|
||||
|
@ -50,3 +50,7 @@ Features, usage, examples and installation instructions can be found on the
|
|||
[website-commits]: https://github.com/TheLocehiliosan/yadm/commits/gh-pages
|
||||
[website-date]: https://img.shields.io/github/last-commit/TheLocehiliosan/yadm/gh-pages.svg?label=website
|
||||
[website-link]: https://yadm.io/
|
||||
[workflow-dev-pages]: https://github.com/thelocehiliosan/yadm/actions?query=workflow%3a%22test+site%22+branch%3adev-pages
|
||||
[workflow-develop]: https://github.com/TheLocehiliosan/yadm/actions?query=workflow%3ATests+branch%3Adevelop
|
||||
[workflow-gh-pages]: https://github.com/thelocehiliosan/yadm/actions?query=workflow%3a%22test+site%22+branch%3agh-pages
|
||||
[workflow-master]: https://github.com/TheLocehiliosan/yadm/actions?query=workflow%3ATests+branch%3Amaster
|
||||
|
|
Loading…
Reference in a new issue