-
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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@d45b1a4e94b71acab930e56e79c6aa188764e7f9 # v1.316.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@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.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