Skip to content

Commit

Permalink
Refactor the flow
Browse files Browse the repository at this point in the history
  • Loading branch information
driv3r committed Sep 11, 2024
1 parent b6b330d commit dd26480
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 96 deletions.
37 changes: 13 additions & 24 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ on:

jobs:
gh-285:
strategy:
matrix:
mysql: ["5.7", "8.0"]
runs-on: ubuntu-latest
timeout-minutes: 15
env:
CI: "true"
MYSQL_VERSION: "8.0"
MYSQL_VERSION: ${{ matrix.mysql }}
steps:
- uses: actions/checkout@v4

Expand All @@ -27,11 +30,14 @@ jobs:
run: ./examples/gh-285/bugreport.sh

go-test:
strategy:
matrix:
mysql: ["5.7", "8.0"]
runs-on: ubuntu-latest
timeout-minutes: 15
env:
CI: "true"
MYSQL_VERSION: "8.0"
MYSQL_VERSION: ${{ matrix.mysql }}
steps:
- uses: actions/checkout@v4

Expand All @@ -46,12 +52,15 @@ jobs:
run: make test-go

ruby-test:
strategy:
matrix:
mysql: ["5.7", "8.0"]
runs-on: ubuntu-latest
timeout-minutes: 15
env:
CI: "true"
BUNDLE_WITHOUT: "development"
MYSQL_VERSION: "8.0"
MYSQL_VERSION: ${{ matrix.mysql }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand Down Expand Up @@ -87,25 +96,5 @@ jobs:
- name: Upload debs
uses: actions/upload-artifact@v4
with:
name: debs-${{ github.sha }}
name: debs-${{ github.sha }}-${{ matrix.runner }}
path: build/ghostferry*

checksum-debs:
runs-on: ubuntu-latest
needs: build-debs
steps:
- name: Fetch uploaded artifacts
uses: actions/download-artifact@v4
with:
name: debs-${{ github.sha }}
- name: shasum
shell: bash
run: |
sha256sum *.deb > ghostferry-$GITHUB_SHA.sha256sum
echo "sha256sum:"
cat ghostferry-$GITHUB_SHA.sha256sum
- name: Upload checksum
uses: actions/upload-artifact@v4
with:
name: debs-${{ github.sha }}
path: "*.sha256sum"
72 changes: 0 additions & 72 deletions .github/workflows/tests_5.7.yml

This file was deleted.

0 comments on commit dd26480

Please sign in to comment.