2022-01-20 23:09:34 +00:00
|
|
|
name: ContinuousIntegration
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'dev*'
|
|
|
|
- '!master'
|
|
|
|
- '!java*'
|
|
|
|
- '!multi*'
|
|
|
|
paths-ignore:
|
|
|
|
- "*.md"
|
|
|
|
- "docs/**"
|
|
|
|
- "examples/**"
|
|
|
|
|
|
|
|
env:
|
|
|
|
IMAGE_TO_TEST: ${{ secrets.IMAGE_ORG }}/minecraft-server:test-${{ github.repository_owner }}-${{ github.run_id }}
|
|
|
|
MODS_FORGEAPI_KEY: ${{ secrets.MODS_FORGEAPI_KEY }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
2022-03-07 14:17:30 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-01-20 23:09:34 +00:00
|
|
|
|
|
|
|
- name: Setup Docker Buildx
|
2022-05-10 17:41:28 +00:00
|
|
|
uses: docker/setup-buildx-action@v2
|
2022-01-20 23:09:34 +00:00
|
|
|
|
|
|
|
- name: Build
|
2022-05-10 02:39:34 +00:00
|
|
|
uses: docker/build-push-action@v3.0.0
|
2022-01-20 23:09:34 +00:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
platforms: linux/amd64
|
|
|
|
tags: ${{ env.IMAGE_TO_TEST }}
|
|
|
|
load: true
|
|
|
|
cache-from: type=gha
|
|
|
|
|
|
|
|
- name: Run Setup Only Tests
|
2022-01-28 00:42:33 +00:00
|
|
|
run: bash tests/setuponlytests/test.sh
|
2022-01-20 23:09:34 +00:00
|
|
|
|
|
|
|
# - name: Run Full Minecraft Service Tests
|
|
|
|
# run: |
|
|
|
|
# tests/fulltests/test.sh
|