-
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 #67 from perldoc-jp/revert-66-revert-65-fence
markdownのFencedCodeに対応する
- Loading branch information
Showing
13 changed files
with
442 additions
and
414 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 |
---|---|---|
|
@@ -15,5 +15,5 @@ jobs: | |
|
||
- name: Run test | ||
run: | | ||
make test | ||
make ci | ||
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,30 @@ | ||
|
||
.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 exec app prove -lrv $(TEST_TARGET) | ||
|
||
.PHONY: ci | ||
ci: | ||
docker compose up -d | ||
make setup-data | ||
make test | ||
|
||
# 翻訳データのセットアップ | ||
# TODO: 翻訳データのセットアップは他にもあるので、全部ひとまとめにできると良さそう | ||
.PHONY: setup-data | ||
setup-data: | ||
docker compose exec app perl script/update.pl | ||
|
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.