web/.github/workflows/ci.yml

54 lines
989 B
YAML
Raw Normal View History

name: CI
2024-10-26 11:58:07 +03:00
2020-01-21 22:05:06 +03:00
on:
push:
branches:
- master
- "hotfix/*"
2020-01-21 22:05:06 +03:00
paths-ignore:
- ".github/**"
- "!.github/workflows/ci.yml"
- .gitignore
- "docs/**"
- README.md
- LICENSE
pull_request:
paths-ignore:
- ".github/**"
- "!.github/workflows/ci.yml"
- .gitignore
- "docs/**"
- README.md
- LICENSE
2020-01-21 22:05:06 +03:00
jobs:
2022-03-04 17:58:42 +03:00
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["3.1", "3.2", "3.3"]
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
2024-04-20 20:17:35 +03:00
with:
node-version: lts/*
- name: Build Assets
run: npm i && npm run build
2020-01-21 22:05:06 +03:00
- name: Test Site
run: bash tools/test.sh