-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from perldoc-jp/fence
markdownで書かれた翻訳は、GitHub Flavored Markdownを利用したい
- Loading branch information
Showing
10 changed files
with
411 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Update cpanfile.snapshot | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- cpanfile | ||
- cpanfile.target | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-cpanfile-snapshot: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Check cpanfile.target | ||
id: check-cpanfile-target | ||
continue-on-error: true | ||
run: sha256sum -c cpanfile.target | ||
|
||
- name: Update cpanfile.snapshot and cpanfile.target | ||
if: steps.check-cpanfile-target.outcome == 'failure' | ||
run: | | ||
docker build . -t perl-app-image --target base | ||
docker run --rm -v $(pwd):/usr/src/app perl-app-image bash -c 'carton install' | ||
sha256sum cpanfile > cpanfile.target | ||
- uses: stefanzweifel/[email protected] | ||
with: | ||
commit_user_name: GitHub Actions | ||
commit_user_email: [email protected] | ||
commit_message: Update cpanfile.snapshot and cpanfile.target | ||
file_pattern: cpanfile.snapshot cpanfile.target cpanfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
|
||
.PHONY: build | ||
build: | ||
docker-compose -f docker-compose.yml build web | ||
docker compose build | ||
|
||
.PHONY: up | ||
up: | ||
make build | ||
docker-compose -f docker-compose.yml up -d web | ||
docker compose up | ||
|
||
.PHONY: down | ||
down: | ||
docker-compose -f docker-compose.yml down | ||
docker compose down | ||
|
||
.PHONY: test | ||
test: TEST_TARGET = t | ||
test: | ||
docker-compose -f docker-compose.yml build test | ||
docker-compose -f docker-compose.yml run test prove -Ilib -r -v t | ||
docker compose run --rm app prove -lrv $(TEST_TARGET) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.