krata/.github/workflows/ci.yml

46 lines
836 B
YAML
Raw Normal View History

name: "CI"
2020-01-21 20:05:06 +01:00
on:
push:
2020-08-20 19:40:56 +02:00
branches-ignore:
- "production"
- "docs"
2020-01-21 20:05:06 +01:00
paths-ignore:
- ".github/**"
- "!.github/workflows/ci.yml"
- ".gitignore"
- "docs/**"
- "README.md"
- "LICENSE"
2020-01-21 20:05:06 +01:00
pull_request:
paths:
- "**"
2020-01-21 20:05:06 +01:00
jobs:
2022-03-04 15:58:42 +01:00
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["3.0", "3.1", "3.2"]
steps:
2020-01-21 20:05:06 +01:00
- name: Checkout
uses: actions/checkout@v4
2020-04-09 21:15:51 +02: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 20:05:06 +01:00
- name: Test Site
2022-12-27 18:10:27 +01:00
run: bash tools/test