Skip to content

Commit 9e570d7

Browse files
committed
Add Github Actions (#5)
* Add Github Actions demo * Update CHANGELOG.md * Include `act` in dev container features This allows Github Actions to be used locally.
1 parent 17f9803 commit 9e570d7

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"image": "mcr.microsoft.com/devcontainers/universal:2",
33
"features": {
44
"ghcr.io/devcontainers/features/github-cli:1": {},
5-
"ghcr.io/devcontainers-contrib/features/act:1": {}
5+
"ghcr.io/devcontainers-contrib/features/act:1": {},
6+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
67
}
78
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: GitHub Actions Demo
2+
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
3+
on: [push]
4+
jobs:
5+
Explore-GitHub-Actions:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
9+
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
10+
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
11+
- name: Check out repository code
12+
uses: actions/checkout@v4
13+
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
14+
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
15+
- name: List files in the repository
16+
run: |
17+
ls ${{ github.workspace }}
18+
- run: echo "🍏 This job's status is ${{ job.status }}."

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- CHANGELOG.md
1313
- LICENSE.md
14+
- Github Actions Demo

0 commit comments

Comments
 (0)