web/.github/workflows/ci.yml

45 lines
805 B
YAML
Raw Normal View History

name: "CI"
2020-01-21 22:05:06 +03:00
on:
push:
2020-08-20 20:40:56 +03:00
branches-ignore:
- "production"
- "docs"
2020-01-21 22:05:06 +03:00
paths-ignore:
- ".github/**"
- "!.github/workflows/ci.yml"
- ".gitignore"
- "README.md"
- "LICENSE"
2020-01-21 22:05:06 +03:00
pull_request:
paths:
- "**"
2020-01-21 22:05:06 +03:00
jobs:
2022-03-04 17:58:42 +03:00
build:
runs-on: ubuntu-latest
2020-01-21 22:05:06 +03:00
strategy:
matrix:
ruby: [2.7, 3]
steps:
2020-01-21 22:05:06 +03:00
- name: Checkout
uses: actions/checkout@v3
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:
2022-03-04 17:58:42 +03:00
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Setup Node
uses: actions/setup-node@v3
- 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