Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Automated tests (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukinoko-kun authored Jan 7, 2024
1 parent 6bb4a19 commit f901079
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test

on:
push:
branches: [ "main" ]
paths:
- "**.go"
- "go.mod"
- "go.sum"
- ".github/workflows/test.yml"
pull_request:
branches: [ "main" ]
paths:
- "**.go"
- "go.mod"
- "go.sum"
- ".github/workflows/deploy.yml"

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Set up SDL
run: sudo apt install libsdl2{,-image,-mixer,-ttf,-gfx}-dev

- name: Go tidy
run: go mod tidy

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

90s style 3D game engine built in [Go](https://go.dev/) using [SDL2](https://www.libsdl.org/)

[![Test](https://github.com/bloodmagesoftware/bloodmage-engine/actions/workflows/test.yml/badge.svg)](https://github.com/bloodmagesoftware/bloodmage-engine/actions/workflows/test.yml)

**This project is still under construction!**

[Create your own project](https://workbench.bloodmagesoftware.dev)
Expand Down

0 comments on commit f901079

Please sign in to comment.