ci: update matrix environment

This commit is contained in:
Cotes Chung 2022-03-04 22:58:42 +08:00
parent dd9d5a7207
commit 00ad357033
No known key found for this signature in database
GPG key ID: 0D9E54843167A808

View file

@ -1,4 +1,4 @@
name: 'Continuous Integration' name: 'CI'
on: on:
push: push:
branches-ignore: branches-ignore:
@ -18,23 +18,20 @@ on:
- '**' - '**'
jobs: jobs:
ci: build:
runs-on: ${{ matrix.os }} runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest] ruby: [2.5, 2.6, 2.7, 3]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: 0 # for posts's lastmod fetch-depth: 0 # for posts's lastmod
- name: Setup Ruby - name: Setup Ruby
uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@v1
with: with:
ruby-version: 2.7 ruby-version: ${{ matrix.ruby }}
bundler-cache: true bundler-cache: true
- name: Test Site - name: Test Site
run: bash tools/deploy.sh --dry-run run: bash tools/deploy.sh --dry-run