mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
33 lines
667 B
YAML
33 lines
667 B
YAML
name: Validate PR
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
IMAGE_TO_TEST: itzg/minecraft-server:test-${{ github.repository_owner }}-${{ github.run_id }}
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
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
|
|
cache-to: type=gha,mode=max
|
|
|
|
- name: Run tests
|
|
run: |
|
|
tests/test.sh
|