Skip to content

333 fix error display page #1130

333 fix error display page

333 fix error display page #1130

Workflow file for this run

name: Build and test Nim
on:
# push:
# paths-ignore:
# - '*.md'
# - 'documents/*'
# テストはPRだけ
pull_request:
paths-ignore:
- '*.md'
- 'documents/*'
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:
runs-on: ubuntu-latest
needs: before
strategy:
matrix:
nim-version:
- 1.6.20
- 2.0.10
- 2.2.0
steps:
- uses: actions/checkout@v2
- name: Build docker image
run: docker compose -f compose.test.yaml build --build-arg VERSION=${{ matrix.nim-version }}
- name: Test
run: |
docker compose -f compose.test.yaml up -d
docker compose -f compose.test.yaml run basolato-test-ubuntu bash runTest.sh
# test-on-docker:
# runs-on: ubuntu-22.04
# needs: before
# strategy:
# matrix:
# nim-version:
# - 1.6.16
# - 2.0.0
# steps:
# - uses: actions/checkout@v2
# - name: Build docker image
# run: docker compose build --build-arg VERSION=${{ matrix.nim-version }} app-ubuntu
# - name: Test
# run: docker compose run app-ubuntu sh runTest.sh
# マルチスレッドは使わない
# - name: Test multi-thread
# run: |
# echo '' >> tests/config.nims
# echo 'switch("threads", "on")' >> tests/config.nims
# echo 'switch("threadAnalysis", "off")' >> tests/config.nims
# docker-compose run app-ubuntu sh /root/project/runTest.sh
# アプリケーションの方を使うことにした
# https://github.com/marketplace/actions/release-drafter
# create-tag-draft:
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
# needs:
# - build
# - test-on-docker
# steps:
# - name: Release Drafter
# uses: release-drafter/release-drafter@v5
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}