Skip to content

ci: add workflow

ci: add workflow #2

Workflow file for this run

name: test
on: pull_request
env:
TEST_TAG: monopoly-test
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build image
uses: docker/build-push-action@v4
with:
context: .
load: true
target: test
tag: ${{ env.TEST_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Test
run: docker run --rm ${{ env.TEST_TAG }}