251 nim v2 support #908
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] | |
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_v1 | |
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 }} |