Skip to content

Commit

Permalink
Update outdated GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
driv3r committed Sep 11, 2024
1 parent f19a5e3 commit 14abbfb
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Build documentations
run: .github/workflows/build-docs.sh
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ jobs:
runner: [ubuntu-latest, shopify-ubuntu-arm64]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.16

- name: Building Ghostferry
run: .github/workflows/build-deb.sh

- name: Upload debs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: debs-${{ github.sha }}
path: build/ghostferry*
Expand All @@ -32,9 +32,9 @@ jobs:
runs-on: ubuntu-latest
needs: build-debs
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Fetch uploaded artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: debs-${{ github.sha }}
- name: shasum
Expand Down
33 changes: 15 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ jobs:
CI: "true"
MYSQL_VERSION: "8.0"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: 1.16

Expand All @@ -26,17 +25,17 @@ jobs:

- name: Running GH-285 test
run: ./examples/gh-285/bugreport.sh

go-test:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
CI: "true"
MYSQL_VERSION: "8.0"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: 1.16

Expand All @@ -45,6 +44,7 @@ jobs:

- name: Running Golang tests
run: make test-go

ruby-test:
runs-on: ubuntu-latest
timeout-minutes: 15
Expand All @@ -53,15 +53,12 @@ jobs:
BUNDLE_WITHOUT: "development"
MYSQL_VERSION: "8.0"
steps:
- uses: actions/checkout@v2

- name: Setup Golang
uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.16

- name: Setup Ruby
uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
Expand All @@ -71,24 +68,24 @@ jobs:

- name: Running Ruby tests
run: bundle exec ruby test/main.rb

build-debs:
strategy:
matrix:
runner: [ubuntu-latest, shopify-ubuntu-arm64]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: 1.16

- name: Building Ghostferry
run: .github/workflows/build-deb.sh

- name: Upload debs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: debs-${{ github.sha }}
path: build/ghostferry*
Expand All @@ -98,7 +95,7 @@ jobs:
needs: build-debs
steps:
- name: Fetch uploaded artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: debs-${{ github.sha }}
- name: shasum
Expand All @@ -108,7 +105,7 @@ jobs:
echo "sha256sum:"
cat ghostferry-$GITHUB_SHA.sha256sum
- name: Upload checksum
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: debs-${{ github.sha }}
path: "*.sha256sum"
20 changes: 9 additions & 11 deletions .github/workflows/tests_5.7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ jobs:
CI: "true"
MYSQL_VERSION: "5.7"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: 1.16

Expand All @@ -26,17 +25,17 @@ jobs:

- name: Running GH-285 test
run: ./examples/gh-285/bugreport.sh

go-test:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
CI: "true"
MYSQL_VERSION: "5.7"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: 1.16

Expand All @@ -45,6 +44,7 @@ jobs:

- name: Running Golang tests
run: make test-go

ruby-test:
runs-on: ubuntu-latest
timeout-minutes: 15
Expand All @@ -53,15 +53,13 @@ jobs:
MYSQL_VERSION: "5.7"
BUNDLE_WITHOUT: "development"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Golang
uses: actions/setup-go@v2
- uses: actions/setup-go@v5
with:
go-version: 1.16

- name: Setup Ruby
uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
Expand Down

0 comments on commit 14abbfb

Please sign in to comment.