Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
59084b6da0
|
|||
|
862a978148
|
|||
|
3db8597c3e
|
28
README.md
Normal file
28
README.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# setup-just
|
||||
|
||||
An action that set's up `just` to allow using `justfile`'s inside gitea workflows.
|
||||
|
||||
## Usage
|
||||
|
||||
Let's assume your repository has a `justfile` that has a recipe called `test` that builds and runs
|
||||
your tests.
|
||||
|
||||
We first use the checkout action that is pulled from `Github`, then we can use this action to setup
|
||||
`just`, notice that you must provide the full url and version tag. Then we run the tests using the
|
||||
`just` recipe called `test`.
|
||||
|
||||
```yaml
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
jobs:
|
||||
test:
|
||||
name: Run tests.
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://git.housh.dev/actions/setup-just@v1
|
||||
- name: Run tests.
|
||||
run: just test
|
||||
```
|
||||
22
action.yml
22
action.yml
@@ -4,16 +4,16 @@ description: "Sets up 'casey/just' inside a workflow"
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Setup MPR
|
||||
shell: bash
|
||||
run: |
|
||||
wget -qO - 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' \
|
||||
| gpg --dearmor \
|
||||
| sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null \
|
||||
&& echo "deb [arch=all,$(dpkg --print-architecture) signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] \
|
||||
https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" \
|
||||
| sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list \
|
||||
&& sudo apt update
|
||||
# - name: Setup MPR
|
||||
# shell: bash
|
||||
# run: |
|
||||
# wget -qO - 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' \
|
||||
# | gpg --dearmor \
|
||||
# | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null \
|
||||
# && echo "deb [arch=all,$(dpkg --print-architecture) signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] \
|
||||
# https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" \
|
||||
# | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list \
|
||||
# && sudo apt update --allow-insecure-repositories
|
||||
- name: Setup just.
|
||||
shell: bash
|
||||
run: sudo apt install -y just
|
||||
run: sudo apt update && apt install -y just
|
||||
|
||||
Reference in New Issue
Block a user