Skip to content

infra: de fato utiliza o XVFB :D #6

infra: de fato utiliza o XVFB :D

infra: de fato utiliza o XVFB :D #6

Workflow file for this run

name: cicd
on: push
permissions:
contents: write
jobs:
cicd:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "~1.21"
- name: Set up Ebitengine
run: sudo apt -y install libc6-dev libgl1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev libasound2-dev pkg-config
- name: Run go vet
run: go vet ./...
- name: Install XVFB
run: sudo apt -y install xvfb
- name: Run unit tests
run: xvfb-run go test ./...
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
if: startsWith(github.ref, 'refs/tags/')
with:
distribution: goreleaser
version: '~> v1'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}