0.29.1 #926
Workflow file for this run
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
name: Build and test Nim | |
# テストはPRだけ | |
on: [pull_request] | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: "test" | |
cancel-in-progress: false | |
jobs: | |
# WIP でジョブがスキップされてもCIが失敗した扱いにならないようにするため | |
skip: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "Skip job" | |
# WIP がコミットメッセージに含まれているとジョブを起動しない | |
before: | |
runs-on: ubuntu-latest | |
if: "! contains(github.event.head_commit.message, 'WIP')" | |
steps: | |
- run: echo "no WIP" | |
test-on-docker-nim-v1: | |
runs-on: ubuntu-latest | |
needs: before | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Test | |
run: docker compose -f compose.test.yaml run app-ubuntu-v1 nimble test | |
test-on-docker-nim-v2: | |
runs-on: ubuntu-latest | |
needs: before | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Test | |
run: docker compose -f compose.test.yaml run app-ubuntu nimble test | |
# アプリケーションの方を使うことにした | |
# https://github.com/marketplace/actions/release-drafter | |
# create-tag-draft: | |
# runs-on: ubuntu-latest | |
# if: github.ref == 'refs/heads/master' | |
# needs: | |
# - test-on-docker | |
# steps: | |
# - uses: release-drafter/[email protected] | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |