Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: taiki-e/install-action@just

- name: docker-build
run: "make docker-build"
run: just docker-build

test-action-with-input-file:
runs-on: ubuntu-latest
Expand All @@ -38,9 +40,11 @@ jobs:

- name: display output
run: cat ./tests/output.txt
shell: bash

- name: test-file-content
run: '[[ "$(cat ./tests/output.txt)" = "Hello world" ]]'
shell: bash

test-action-with-input-pattern:
runs-on: ubuntu-latest
Expand All @@ -66,9 +70,11 @@ jobs:
ls -l
ls -l tests
cat ./tests/input.txt.out
shell: bash

- name: test-file-content
run: '[[ "$(cat ./tests/input.txt.out)" = "Hello world" ]]'
shell: bash

test-entrypoint-script:
runs-on: ubuntu-latest
Expand All @@ -77,9 +83,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: taiki-e/install-action@just

- name: test-entrypoint
working-directory: tests
run: "make tests"
run: just tests
shell: bash

release:
runs-on: ubuntu-latest
Expand Down
8 changes: 0 additions & 8 deletions Makefile

This file was deleted.

17 changes: 17 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env -S just --justfile

set quiet := true

default:
just --choose

# Build docker image
[group('Development mode')]
docker-build:
docker build -t actions-able/envsubst-action .

# Generate site for production
[group('Development mode')]
tests:
cd tests/ && ./tests.sh