Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
check-dist:
runs-on: puzl-cloud
runs-on: puzl-ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/licensed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
test:
runs-on: puzl-cloud
runs-on: puzl-ubuntu-latest
name: Check licenses
steps:
- uses: actions/checkout@v4
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/publish-immutable-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Publish Immutable Action Version'

on:
release:
types: [released]

jobs:
publish:
runs-on: puzl-ubuntu-latest
permissions:
contents: read
id-token: write
packages: write

steps:
- name: Checking out
uses: actions/checkout@v4
- name: Publish
id: publish
uses: actions/publish-immutable-action@0.0.3
27 changes: 27 additions & 0 deletions .github/workflows/release-new-action-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release new action version
on:
release:
types: [released]
workflow_dispatch:
inputs:
TAG_NAME:
description: 'Tag name that the major tag will point to'
required: true

env:
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
permissions:
contents: write

jobs:
update_tag:
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
environment:
name: releaseNewActionVersion
runs-on: puzl-ubuntu-latest
steps:
- name: Update the ${{ env.TAG_NAME }} tag
id: update-major-tag
uses: actions/publish-action@v0.3.0
with:
source-tag: ${{ env.TAG_NAME }}
74 changes: 70 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
jobs:
# Build and unit test
static-tests:
runs-on: [puzl-cloud]
runs-on: puzl-ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -33,7 +33,7 @@ jobs:

# End to end save and restore
test-save:
runs-on: [puzl-cloud]
runs-on: puzl-ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -60,7 +60,7 @@ jobs:

test-restore:
needs: test-save
runs-on: [puzl-cloud]
runs-on: puzl-ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -71,6 +71,10 @@ jobs:
uses: ./
with:
key: test-${{ runner.os }}-${{ github.run_id }}
path: |
test-cache
./test/**/dist
~/test-cache
- name: Verify cache files in working directory
shell: bash
run: bash __tests__/verify-cache-files.sh ${{ runner.os }} test-cache
Expand All @@ -83,11 +87,73 @@ jobs:

test-cleanup:
needs: test-restore
runs-on: [puzl-cloud]
runs-on: puzl-ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cleanup old caches
shell: bash
run: bash -x cleanup.sh

test-save-only:
runs-on: puzl-ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate files in working directory
shell: bash
run: bash __tests__/create-cache-files.sh ${{ runner.os }} test-separate-actions
- name: Generate files outside working directory
shell: bash
run: bash __tests__/create-cache-files.sh ${{ runner.os }} ~/test-separate-actions
- name: Generate files outside working directory
shell: bash
run: bash __tests__/create-cache-files.sh ${{ runner.os }} ./test/dir/dist
- name: Save cache
uses: ./save
with:
key: test-separate-${{ runner.os }}-${{ github.run_id }}
path: |
test-separate-actions
./test/**/dist
~/test-separate-actions
- name: tree /.puzl
shell: bash
run: tree /.puzl

test-restore-only:
needs: test-save-only
runs-on: puzl-ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: tree /.puzl
shell: bash
run: tree /.puzl
- name: Restore cache
uses: ./restore
with:
key: test-separate-${{ runner.os }}-${{ github.run_id }}
path: |
test-separate-actions
./test/**/dist
~/test-separate-actions
- name: Verify cache files in working directory
shell: bash
run: bash __tests__/verify-cache-files.sh ${{ runner.os }} test-separate-actions
- name: Verify cache files outside working directory
shell: bash
run: bash __tests__/verify-cache-files.sh ${{ runner.os }} ./test/dir/dist
- name: Verify cache files outside working directory
shell: bash
run: bash __tests__/verify-cache-files.sh ${{ runner.os }} ~/test-separate-actions

test-cleanup-restore-only:
needs: test-restore-only
runs-on: puzl-ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cleanup old caches
shell: bash
run: bash -x cleanup.sh
2 changes: 1 addition & 1 deletion .licenses/npm/@actions/cache.dep.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .licenses/npm/@bufbuild/protobuf.dep.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading