-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.4 KB
/
Copy pathruby.yml
File metadata and controls
48 lines (43 loc) · 1.4 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
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@89f90524b88a01fe6e0b732220432cc6142926af # v1.310.0 # zizmor: ignore[cache-poisoning]
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
with:
driver-opts: network=host
- name: Build Node.js 22 image
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.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@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.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