From 00ad357033a61a8deb8fe8b4444c7a71922ba795 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 4 Mar 2022 22:58:42 +0800 Subject: [PATCH] ci: update matrix environment --- .github/workflows/ci.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc8083e..dbefeae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: 'Continuous Integration' +name: 'CI' on: push: branches-ignore: @@ -18,23 +18,20 @@ on: - '**' jobs: - ci: - runs-on: ${{ matrix.os }} + build: + runs-on: ubuntu-latest strategy: matrix: - os: [ubuntu-latest, macos-latest] - + ruby: [2.5, 2.6, 2.7, 3] steps: - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 # for posts's lastmod - - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: ${{ matrix.ruby }} bundler-cache: true - - name: Test Site run: bash tools/deploy.sh --dry-run