2020-05-30 05:32:36 +08:00
|
|
|
name: 'Continuous Integration'
|
2020-01-22 03:05:06 +08:00
|
|
|
on:
|
|
|
|
push:
|
2020-08-21 01:40:56 +08:00
|
|
|
branches-ignore:
|
|
|
|
- 'production'
|
2020-03-02 01:03:58 +08:00
|
|
|
tags-ignore:
|
|
|
|
- '*'
|
2020-01-22 03:05:06 +08:00
|
|
|
paths-ignore:
|
2020-03-02 01:03:58 +08:00
|
|
|
- '.github/**'
|
2020-06-06 03:19:24 +08:00
|
|
|
- '!.github/workflows/ci.yml'
|
2020-03-02 01:03:58 +08:00
|
|
|
- '.travis.yml'
|
|
|
|
- '.gitignore'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'README.md'
|
|
|
|
- 'LICENSE'
|
2020-01-22 03:05:06 +08:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2020-07-30 02:36:47 +08:00
|
|
|
- '**'
|
2020-01-22 03:05:06 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
|
|
|
|
2020-11-23 01:26:29 +08:00
|
|
|
steps:
|
2020-01-22 03:05:06 +08:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2020-04-10 03:15:51 +08:00
|
|
|
with:
|
2020-11-23 01:26:29 +08:00
|
|
|
fetch-depth: 0 # for posts's lastmod
|
|
|
|
|
|
|
|
- name: Setup Ruby
|
2021-04-01 04:17:18 +08:00
|
|
|
uses: ruby/setup-ruby@v1
|
2020-11-23 01:26:29 +08:00
|
|
|
with:
|
2020-12-06 23:12:20 +08:00
|
|
|
ruby-version: 2.7
|
2021-04-01 04:17:18 +08:00
|
|
|
bundler-cache: true
|
2020-01-22 03:05:06 +08:00
|
|
|
|
|
|
|
- name: Test Site
|
2021-09-28 22:22:36 +08:00
|
|
|
run: bash tools/deploy.sh --dry-run
|