Skip to content

Commit

Permalink
Added act support for local testing
Browse files Browse the repository at this point in the history
  • Loading branch information
SlothCroissant committed Mar 16, 2023
1 parent 16beb3c commit 1684012
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .act-event.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"act": true
}
4 changes: 4 additions & 0 deletions .actrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-P self-hosted=ghcr.io/catthehacker/ubuntu:act-latest
--container-architecture linux/amd64
-e .act-event.json
--bind
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: '0'
if: ${{ !github.event.act }} # skip during local actions testing

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.secrets
.DS_Store

0 comments on commit 1684012

Please sign in to comment.