mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +00:00
Add GitHub Actions CI workflow
This commit is contained in:
parent
664a458c35
commit
cb82a6598a
1 changed files with 60 additions and 0 deletions
60
.github/workflows/ci.yml
vendored
Normal file
60
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,60 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
coverage:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: .ruby-version
|
||||||
|
|
||||||
|
- name: Bootstrap
|
||||||
|
run: bin/bootstrap
|
||||||
|
|
||||||
|
- name: Coverage
|
||||||
|
run: bundle exec bake coverage
|
||||||
|
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: .ruby-version
|
||||||
|
|
||||||
|
- name: Bootstrap
|
||||||
|
run: bin/bootstrap
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: bundle exec bake lint
|
||||||
|
|
||||||
|
debug:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: .ruby-version
|
||||||
|
|
||||||
|
- name: Bootstrap
|
||||||
|
run: bin/bootstrap
|
||||||
|
|
||||||
|
- name: Debug Build
|
||||||
|
run: bundle exec bake debug
|
||||||
Loading…
Reference in a new issue