Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: CI Workflow updates #8387

Merged
merged 21 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
90aba30
chore(ci): update actions/setup-node action to latest
KSDaemon Jun 24, 2024
f0ff233
chore(ci): update nick-invision/retry action to latest
KSDaemon Jun 24, 2024
2df0fe6
chore(ci): update set-output (deprecated) to use $GITHUB_OUTPUT
KSDaemon Jun 24, 2024
a9c4a8f
chore(ci): update allenevans/set-env action to latest
KSDaemon Jun 24, 2024
ec59d4b
chore(ci): update actions/cache action to latest
KSDaemon Jun 24, 2024
657fbba
chore(ci): update actions-rs/toolchain to actions-rust-lang/setup-rus…
KSDaemon Jun 27, 2024
48710d4
chore(ci): update docker/* actions to latest
KSDaemon Jun 27, 2024
c04f9f7
chore(ci): update artifact-related actions to latest
KSDaemon Jun 27, 2024
a470fb2
chore(ci): update macos-13 in CI jobs
KSDaemon Jun 26, 2024
4947322
chore(ci): remove unused os versions from job matrix in birdbox
KSDaemon Jun 26, 2024
79bf5f2
chore(ci): remove rustup workaround on non-windows jobs
KSDaemon Jun 26, 2024
1ff10f9
chore(ci): update xom9ikk/dotenv action to latest
KSDaemon Jun 26, 2024
feccdcb
chore(ci): remove matrix.before_script steps because there is no befo…
KSDaemon Jun 26, 2024
8ed98f7
chore(ci): fix SC2086/SC2046 shellcheck warnings: double quote to pre…
KSDaemon Jun 26, 2024
278926a
chore(ci): update actions/github-script action to latest
KSDaemon Jun 27, 2024
0237d73
chore(ci): fix SC2035 shellcheck warning (use ./*glob* or -- *glob* s…
KSDaemon Jun 27, 2024
9ffa323
chore(ci): remove unused RUNNER_TRACKING_ID in push job
KSDaemon Jun 27, 2024
fc4c91b
chore(ci): fix SC2086/SC2046 shellcheck warnings: double quote to pre…
KSDaemon Jun 27, 2024
bfe759e
chore(ci): fix SC2129 shellcheck warnings: Consider using { cmd1; cmd…
KSDaemon Jun 27, 2024
0d3c17b
chore(ci): remove actions-rs/cargo actions as not supported from 2021…
KSDaemon Jun 27, 2024
db3903e
chore(ci): add workflow actions linter to run on workflow modifications
KSDaemon Jun 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/init-ci/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ runs:
using: "composite"
steps:
- name: Use Node.js ${{ inputs.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node }}
- name: Cache node modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
Expand Down
23 changes: 9 additions & 14 deletions .github/workflows/birdbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,16 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-18.04, macos-12, windows-2019]
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Disable rustup update (issue workaround for Windows)
run: rustup set auto-self-update disable
if: contains(runner.os, 'windows')
shell: bash
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Restore lerna
uses: actions/cache@v3
uses: actions/cache@v4
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: |
Expand All @@ -52,7 +47,7 @@ jobs:
- name: Set Yarn version
run: yarn policies set-version v1.22.19
- name: Yarn install
uses: nick-invision/retry@v2
uses: nick-fields/retry@v3
env:
CUBESTORE_SKIP_POST_INSTALL: true
with:
Expand Down Expand Up @@ -95,11 +90,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js 18.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Restore lerna
uses: actions/cache@v3
uses: actions/cache@v4
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: |
Expand All @@ -113,7 +108,7 @@ jobs:
- name: Set Yarn version
run: yarn policies set-version v1.22.19
- name: Yarn install
uses: nick-invision/retry@v2
uses: nick-fields/retry@v3
env:
CUBESTORE_SKIP_POST_INSTALL: true
with:
Expand Down Expand Up @@ -158,11 +153,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js 18.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Restore lerna
uses: actions/cache@v3
uses: actions/cache@v4
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: |
Expand All @@ -176,7 +171,7 @@ jobs:
- name: Set Yarn version
run: yarn policies set-version v1.22.19
- name: Yarn install
uses: nick-invision/retry@v2
uses: nick-fields/retry@v3
env:
CUBESTORE_SKIP_POST_INSTALL: true
with:
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
- id: git-log
run: git log HEAD~30..HEAD
- id: get-tag-test
run: echo "$SHA $(git rev-list -n 1 $(git tag --contains $SHA))"
run: echo "$SHA $(git rev-list -n 1 "$(git tag --contains "$SHA")")"
env:
SHA: ${{ github.sha }}
- id: get-tag
run: echo "::set-output name=sha::$(git rev-list -n 1 $(git tag --contains $SHA))"
run: echo "sha=$(git rev-list -n 1 "$(git tag --contains "$SHA")")" >> "$GITHUB_OUTPUT"
env:
SHA: ${{ github.sha }}
- id: get-tag-out
Expand All @@ -64,20 +64,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Disable rustup update (issue workaround for Windows)
run: rustup set auto-self-update disable
if: contains(runner.os, 'windows')
shell: bash
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
shell: bash
- name: Restore yarn cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
Expand Down
29 changes: 15 additions & 14 deletions .github/workflows/drivers-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ jobs:
- id: git-log
run: git log HEAD~30..HEAD
- id: get-tag-test
run: echo "$SHA $(git rev-list -n 1 $(git tag --contains $SHA))"
run: echo "$SHA $(git rev-list -n 1 "$(git tag --contains "$SHA")")"
env:
SHA: ${{ github.sha }}
- id: get-tag
run: echo "::set-output name=sha::$(git rev-list -n 1 $(git tag --contains $SHA))"
run: echo "sha=$(git rev-list -n 1 "$(git tag --contains "$SHA")")" >> "$GITHUB_OUTPUT"
env:
SHA: ${{ github.sha }}
- id: get-tag-out
Expand All @@ -95,14 +95,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2023-12-13
override: true
# override: true # this is by default on
rustflags: ""
components: rustfmt
target: ${{ matrix.target }}
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Yarn
Expand All @@ -123,7 +124,7 @@ jobs:
run: cd packages/cubejs-backend-native && npm run native:build-release
- name: Setup cross compilation
if: (matrix.target == 'aarch64-unknown-linux-gnu')
uses: allenevans/set-env@v3.0.0
uses: allenevans/set-env@v4.0.0
with:
PYO3_CROSS_PYTHON_VERSION: ${{ matrix.python-version }}
- name: Build native (with Python)
Expand Down Expand Up @@ -155,7 +156,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Download native build
uses: actions/download-artifact@v4
Expand All @@ -164,12 +165,12 @@ jobs:
path: packages/cubejs-backend-native/

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
version: v0.10.3

- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
file: ./packages/cubejs-docker/testing-drivers.Dockerfile
Expand All @@ -183,7 +184,7 @@ jobs:
if: (needs['latest-tag-sha'].outputs.sha != github.sha)
strategy:
matrix:
node:
node:
- 18.x
database:
- athena
Expand All @@ -202,7 +203,7 @@ jobs:
uses: actions/checkout@v4

- name: Install Node.js 18.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x

Expand All @@ -211,19 +212,19 @@ jobs:

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
shell: bash
- name: Restore yarn cache
# We don't want to save it on finish, restore only!
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies
uses: nick-invision/retry@v2
uses: nick-fields/retry@v3
env:
CUBESTORE_SKIP_POST_INSTALL: true
with:
Expand Down
Loading
Loading