https://github.com/rahulstech/github-action-lessons
learning github actions workflow
https://github.com/rahulstech/github-action-lessons
Last synced: 6 months ago
JSON representation
learning github actions workflow
- Host: GitHub
- URL: https://github.com/rahulstech/github-action-lessons
- Owner: rahulstech
- Created: 2026-01-22T18:33:29.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2026-01-23T04:35:08.000Z (6 months ago)
- Last Synced: 2026-01-23T12:33:34.413Z (6 months ago)
- Language: Kotlin
- Size: 53.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Github Actions
## Terminology
* **Trigger**: an event that stats the action. for example: `push`, `pull_request` etc.
* **Jobs**: set of tasks (`steps`) to run.
* **Runner**: the os to execute the steps. for example: `ubuntu-latest`.
* **Step**: a single piece of task.
- `uses` used when using predefined set of steps from Github Actions marketplace. for example `actions/checkout@v4`
- `run` used when executing a shell command
**IMPORTANT** github workflows are saved under `$projectRoot/.github/workflows/name-of-workflow.yml`
## Learning Outcome
- Copy current branch content to the runner using **actions/checkout@v4**
- Setup java open-jdk 21 (temurin-21) using **actions/setup-java@v4**
- Run `gradle` test
- Cache gradle dependencies for future use
- Upload artifact using **actions/upload-artifact@v4**
- Parsing test report using **mikepenz/action-junit-report@v4**
- Add permission (read/write) to workflow