web/.github/workflows/ci.yml

43 lines
786 B
YAML
Raw Normal View History

name: "CI"
2020-01-21 22:05:06 +03:00
on:
push:
branches:
- "master"
2020-01-21 22:05:06 +03:00
paths-ignore:
- ".github/**"
- "!.github/workflows/ci.yml"
- ".gitignore"
- "docs/**"
- "README.md"
- "LICENSE"
2020-01-21 22:05:06 +03:00
pull_request:
jobs:
2022-03-04 17:58:42 +03:00
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["3.0", "3.1", "3.2"]
steps:
2020-01-21 22:05:06 +03:00
- name: Checkout
uses: actions/checkout@v4
2020-04-09 22:15:51 +03:00
with:
fetch-depth: 0 # for posts's lastmod
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Setup Node
uses: actions/setup-node@v4
- name: Build Assets
run: npm i && npm run build
2020-01-21 22:05:06 +03:00
- name: Test Site
2022-12-27 20:10:27 +03:00
run: bash tools/test