Repository navigation
73 lines (68 loc) · 2.37 KB
/
Copy pathci.yml
File metadata and controls
73 lines (68 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
name: Ruby ${{ matrix.ruby }}
strategy:
fail-fast: false
matrix:
ruby: ["3.2", "4.0.6"]
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Verify gem
run: bin/ci
dagger:
name: Dagger build
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
ruby-version: "4.0.6"
bundler-cache: true
- name: Build a Node application through the shared Mise pipeline
uses: dagger/dagger-for-github@27b130bf0f79a7f6fbbbe0fbca6760dc9bb40a77 # v8.4.1
with:
version: "0.21.9"
dagger-flags: --silent
verb: run
args: >-
-- bundle exec boringbuilder build --runtime docker --format directory
--output dist/smoke test/fixtures/custom_node_app
- name: Verify the custom pipeline artifact
run: |
test "$(cat test/fixtures/custom_node_app/dist/smoke/app/hello.txt)" = "hello from boringbuilder"
grep -Eq '^v24\.' test/fixtures/custom_node_app/dist/smoke/app/node.txt
- name: Build through the Mise-powered Rails pipeline
uses: dagger/dagger-for-github@27b130bf0f79a7f6fbbbe0fbca6760dc9bb40a77 # v8.4.1
with:
version: "0.21.9"
dagger-flags: --silent
verb: run
args: >-
-- bundle exec boringbuilder build --no-assets --no-bootsnap --runtime docker
--format directory --path /rails --output dist/mise-smoke test/fixtures/rails_app
- name: Verify the built-in Ruby artifact
run: test -f test/fixtures/rails_app/dist/mise-smoke/rails/Gemfile