chore(deps): update all non-major dependencies #1921
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
branches: [main] | |
# Added 'edited' temporarily, as there currently is no trigger for when the base branch is updated. | |
# https://github.com/orgs/community/discussions/64119 | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
- closed | |
- edited | |
merge_group: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
KSAIL_CLUSTER_NAME: homelab-local | |
jobs: | |
path-filter: | |
runs-on: ubuntu-latest | |
outputs: | |
should_skip: ${{ steps.filter.outputs.should_skip }} | |
steps: | |
- uses: actions/checkout@v4 # better this action use git diff, so you need checkout the code first | |
with: | |
filter: blob:none # reduce clone size | |
fetch-depth: 0 # need full history, the default is 1, which is not enough. if you limit the pull request' commit length, you can set it to your limit. | |
- uses: leavesster/[email protected] # v0.2 is the latest version | |
id: "filter" | |
with: | |
paths: | # notice the `|`, it's required. the left is same as github action's path and paths-ignore | |
- "k8s/**" | |
- ".sops.yaml" | |
- ".github/workflows/test.yaml" | |
test: | |
runs-on: homelab | |
env: | |
KSAIL_VERSION: v1.5.0 | |
KSAIL_CLUSTER_NAME: homelab-local | |
needs: path-filter | |
if: ${{ github.event.pull_request.draft == false && needs.path-filter.outputs.should_skip != 'true' }} | |
steps: | |
- name: 📑 Checkout | |
uses: actions/checkout@v4 | |
- name: ⚙️ Install KSail | |
run: | | |
curl -L -o ksail https://github.com/devantler/ksail/releases/download/${{ env.KSAIL_VERSION }}/ksail-linux-arm64 | |
chmod +x ksail | |
sudo mv ksail /usr/local/bin/ksail | |
- name: ⛴️ Provision cluster | |
run: | | |
ksail sops ${{ env.KSAIL_CLUSTER_NAME }} --import "${{ secrets.KSAIL_SOPS_KEY }}" | |
ksail up ${{ env.KSAIL_CLUSTER_NAME }} | |
- name: 🔥 Teardown cluster | |
if: always() | |
run: ksail down ${{ env.KSAIL_CLUSTER_NAME }} |