-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.42 KB
/
Copy pathruby.yml
File metadata and controls
50 lines (45 loc) · 1.42 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
name: Serverspec
on: push
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
ruby-version: ['3.4', '4.0']
fail-fast: false
name: Ruby ${{ matrix.ruby-version }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: false
- name: Install gems
run: bundle install
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4.3.0
with:
driver-opts: network=host
- name: Build Node.js 22 image
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: ./22
load: true
tags: node-test:22
cache-from: type=gha,scope=node22
cache-to: type=gha,mode=max,scope=node22
- name: Build Node.js 24 image
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: ./24
load: true
tags: node-test:24
cache-from: type=gha,scope=node24
cache-to: type=gha,mode=max,scope=node24
- name: Run tests
run: bundle exec rake