mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-14 06:12:27 +00:00
bd4760e504
Co-authored-by: christopher blodgett <christopher.blodgett@gmail.com> Co-authored-by: Geoff Bourne <itzgeoff@gmail.com>
43 lines
964 B
YAML
43 lines
964 B
YAML
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:
|
|
- uses: actions/checkout@v2.4.0
|
|
|
|
- name: Setup Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Build
|
|
uses: docker/build-push-action@v2.7.0
|
|
with:
|
|
context: .
|
|
platforms: linux/amd64
|
|
tags: ${{ env.IMAGE_TO_TEST }}
|
|
load: true
|
|
cache-from: type=gha
|
|
|
|
- name: Run Setup Only Tests
|
|
run: sh tests/setuponlytests/test.sh
|
|
|
|
# - name: Run Full Minecraft Service Tests
|
|
# run: |
|
|
# tests/fulltests/test.sh
|