Skip to content

Commit 6bf8d11

Browse files
authored
Merge pull request #2 from tuist/feat/marketplace-actions-support
feat: Add GitHub Actions marketplace support
2 parents 32b66e8 + e2101db commit 6bf8d11

11 files changed

Lines changed: 945 additions & 119 deletions

File tree

Cargo.lock

Lines changed: 113 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ tokio = { version = "1.41", features = ["full", "process"] }
1818
colored = "2.1"
1919
anyhow = "1.0"
2020
inquire = "0.7"
21+
uuid = { version = "1.0", features = ["v4"] }

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ magnolia .forgejo/workflows/deploy.yml
5050
### ⚡ Execution
5151

5252
- **GitLab CI**: Executes jobs in containers (Podman/Docker) when `image:` is specified, or on host otherwise.
53-
- **GitHub Actions / Forgejo Actions**: Executes `run:` steps in containers based on `runs-on:` runner. Marketplace actions (`uses:`) support coming soon.
53+
- **GitHub Actions / Forgejo Actions**:
54+
- Executes `run:` steps in containers based on `runs-on:` runner
55+
- Executes marketplace actions (`uses:`) - composite, Docker, and Node.js actions supported
56+
- Actions are downloaded once and cached locally in `~/.magnolia/actions`
5457

5558
## 🔧 Supported Systems
5659

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test with Actions
2+
3+
on: [push]
4+
5+
jobs:
6+
test-actions:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
12+
- name: Run tests
13+
run: |
14+
echo "Running Forgejo Actions tests..."
15+
pwd
16+
17+
test-container:
18+
container: alpine:latest
19+
steps:
20+
- name: Echo in container
21+
run: echo "Hello from Alpine container!"
22+
23+
- name: List files
24+
run: ls -la
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test with Actions
2+
3+
on: [push]
4+
5+
jobs:
6+
test-composite:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: '20'
16+
17+
- name: Run tests
18+
run: echo "Running tests..."
19+
20+
test-simple:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Simple echo
24+
run: |
25+
echo "Hello from GitHub Actions!"
26+
echo "This workflow mixes run and uses steps"
27+
28+
- name: Check files
29+
run: ls -la
30+
31+
test-docker-action:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Hello World Docker Action
35+
uses: docker://alpine:latest
36+
with:
37+
entrypoint: /bin/echo
38+
args: "Hello from Docker action!"

0 commit comments

Comments
 (0)