diff options
| author | Shyam Sunder | 2021-09-15 16:06:48 -0400 |
|---|---|---|
| committer | Shyam Sunder | 2021-09-19 11:01:47 -0400 |
| commit | 4f57f49ebe5395a4c3a8e20c84c5d881c9f98dfc (patch) | |
| tree | c537531616d1e75ded332d38959c90185bf8ba72 /.github/workflows/run-unit-tests.yml | |
| parent | f58079e12edd3c4dcc3f8b8dab572207b235aeff (diff) | |
client+server: migrate to GitHub actions
Diffstat (limited to '.github/workflows/run-unit-tests.yml')
| -rw-r--r-- | .github/workflows/run-unit-tests.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml new file mode 100644 index 0000000..87ab4e8 --- /dev/null +++ b/.github/workflows/run-unit-tests.yml @@ -0,0 +1,16 @@ +name: run-unit-tests +on: [pull_request] +jobs: + test-server: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Build test container + run: | + TAG=$(docker build --target testing -q ./server) + echo "image_tag=${TAG}" >> $GITHUB_ENV + + - name: Run unit tests + run: docker run --rm -t ${{ env.image_tag }} --color=no szurubooru/ |