Skip to content

Commit

Permalink
build(deps): bump actions/checkout from 1 to 4 (#2974)
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones authored Sep 18, 2023
2 parents 8da9015 + 7d89f03 commit 1bdfc5e
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 42 deletions.
70 changes: 36 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.2
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- run: bundle install --local || bundle install
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
run: |
git config --system core.autocrlf false
git config --system core.eol lf
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
Expand All @@ -81,7 +81,7 @@ jobs:
container:
image: ghcr.io/sparklemotion/nokogiri-test:ubuntu
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- run: bundle install --local || bundle install
Expand All @@ -103,7 +103,7 @@ jobs:
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-${{matrix.ruby}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v3
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
env:
NOKOGIRI_LIBXML_MEMORY_MANAGEMENT: ${{matrix.mem}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v3
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-${{matrix.ruby}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v3
Expand All @@ -220,7 +220,7 @@ jobs:
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-${{matrix.ruby}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v3
Expand All @@ -241,7 +241,7 @@ jobs:
ruby: ["2.7", "3.0", "3.1", "3.2"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
Expand Down Expand Up @@ -270,7 +270,7 @@ jobs:
run: |
git config --system core.autocrlf false
git config --system core.eol lf
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby-pkgs@v1
Expand All @@ -295,7 +295,7 @@ jobs:
ruby: ["jruby-9.4"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
Expand All @@ -320,7 +320,7 @@ jobs:
container:
image: ghcr.io/sparklemotion/nokogiri-test:truffle-nightly
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v3
Expand All @@ -340,7 +340,7 @@ jobs:
sys: ["enable", "disable"]
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: vmactions/freebsd-vm@v0
Expand All @@ -367,7 +367,7 @@ jobs:
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-${{matrix.ruby}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v3
Expand All @@ -388,7 +388,7 @@ jobs:
outputs:
rcd_image_version: ${{steps.rcd_image_version.outputs.rcd_image_version}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
Expand All @@ -401,18 +401,20 @@ jobs:
needs: ["rcd_image_version"]
name: "generic-package"
runs-on: ubuntu-latest
container:
image: "ghcr.io/rake-compiler/rake-compiler-dock-image:${{needs.rcd_image_version.outputs.rcd_image_version}}-mri-x86_64-linux"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- run: git config --global --add safe.directory /__w/nokogiri/nokogiri # shrug
- uses: actions/cache@v3
with:
path: ports/archives
key: tarballs-ubuntu-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: ./scripts/test-gem-build gems ruby
- env:
DOCKER_IMAGE: "ghcr.io/rake-compiler/rake-compiler-dock-image:${{needs.rcd_image_version.outputs.rcd_image_version}}-mri-x86_64-linux"
run: |
docker run --rm -v "$(pwd):/nokogiri" -w /nokogiri \
${DOCKER_IMAGE} \
./scripts/test-gem-build gems ruby
- uses: actions/upload-artifact@v3
with:
name: generic-gem
Expand All @@ -428,7 +430,7 @@ jobs:
ruby: ["2.7", "3.0", "3.1", "3.2"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby-pkgs@v1
Expand All @@ -450,7 +452,7 @@ jobs:
ruby: ["2.7", "3.0", "3.1", "3.2"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
Expand All @@ -471,7 +473,7 @@ jobs:
ruby: ["2.7", "3.0"]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby-pkgs@v1
Expand All @@ -494,7 +496,7 @@ jobs:
ruby: ["3.1", "3.2"]
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby-pkgs@v1
Expand Down Expand Up @@ -526,7 +528,7 @@ jobs:
- "x86_64-linux"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v3
Expand All @@ -553,7 +555,7 @@ jobs:
ruby: ["2.7", "3.0", "3.1", "3.2"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
Expand All @@ -575,7 +577,7 @@ jobs:
ruby: ["2.7", "3.0", "3.1", "3.2"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
Expand All @@ -597,7 +599,7 @@ jobs:
ruby: ["2.7", "3.0", "3.1", "3.2"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
Expand All @@ -619,7 +621,7 @@ jobs:
ruby: ["2.7", "3.0", "3.1", "3.2"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
Expand All @@ -639,7 +641,7 @@ jobs:
container:
image: ghcr.io/sparklemotion/nokogiri-test:alpine
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
Expand All @@ -656,7 +658,7 @@ jobs:
ruby: ["2.7", "3.0", "3.1", "3.2"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
Expand All @@ -676,7 +678,7 @@ jobs:
ruby: ["2.7", "3.0"]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
Expand All @@ -697,7 +699,7 @@ jobs:
ruby: ["3.1", "3.2"]
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
Expand All @@ -716,7 +718,7 @@ jobs:
container:
image: "ghcr.io/rake-compiler/rake-compiler-dock-image:${{needs.rcd_image_version.outputs.rcd_image_version}}-jruby"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- run: ./scripts/test-gem-build gems java
Expand All @@ -736,7 +738,7 @@ jobs:
name: "jruby-${{matrix.jruby}}-jre${{matrix.jre}}-install"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.1
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-ci-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
tag: ["alpine", "mri-2.7", "mri-3.0", "mri-3.1", "mri-3.2", "truffle-nightly", "ubuntu", "ubuntu32"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: |
git config --system core.autocrlf false
git config --system core.eol lf
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby-pkgs@v1
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.1
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup libxml2
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
run: |
git config --system core.autocrlf false
git config --system core.eol lf
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby-pkgs@v1
Expand All @@ -129,7 +129,7 @@ jobs:
sys: ["enable", "disable"]
runs-on: ubuntu-20.04 # warning that 22.04 binary has dwarf5 debug info that valgrind can't read
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby-pkgs@v1
Expand All @@ -150,7 +150,7 @@ jobs:
jruby-head:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
Expand All @@ -166,7 +166,7 @@ jobs:
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.1
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v3
Expand Down
3 changes: 3 additions & 0 deletions scripts/test-gem-build
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ test -e /etc/os-release && cat /etc/os-release

set -u -x

# avoid the pernicious "fatal: detected dubious ownership in repository" errors
git config --global --add safe.directory $(realpath $(dirname $0)/..)

bundle

bundle exec rake set-version-to-timestamp
Expand Down

0 comments on commit 1bdfc5e

Please sign in to comment.