mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 23:54:33 +01:00
chore(cicd): updating CD pipeline, adds new CI pipeline with unit tests.
This commit is contained in:
8
.github/workflows/go.yml
vendored
8
.github/workflows/go.yml
vendored
@@ -7,10 +7,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: 1.25
|
go-version: 1.25
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
run: env GOOS=linux GOARCH=amd64 go build -v
|
run: env GOOS=linux GOARCH=amd64 go build -v
|
||||||
|
|
||||||
- name: Upload Linux-amd64 artifacts
|
- name: Upload Linux-amd64 artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: Linux-amd64
|
name: Linux-amd64
|
||||||
path: |
|
path: |
|
||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
run: env GOOS=windows GOARCH=amd64 go build -v
|
run: env GOOS=windows GOARCH=amd64 go build -v
|
||||||
|
|
||||||
- name: Upload Windows-amd64 artifacts
|
- name: Upload Windows-amd64 artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: Windows-amd64
|
name: Windows-amd64
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
32
.github/workflows/test.yml
vendored
Normal file
32
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: Test
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v6
|
||||||
|
with:
|
||||||
|
go-version: 1.25
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: go test -v ./...
|
||||||
|
|
||||||
|
- name: Run tests with race detector
|
||||||
|
run: go test -race ./...
|
||||||
|
|
||||||
|
- name: Generate coverage
|
||||||
|
run: go test -coverprofile=coverage.out ./...
|
||||||
|
|
||||||
|
- name: Upload coverage to Codecov
|
||||||
|
uses: codecov/codecov-action@v5
|
||||||
|
with:
|
||||||
|
files: ./coverage.out
|
||||||
|
flags: unittests
|
||||||
|
name: codecov-umbrella
|
||||||
|
continue-on-error: true
|
||||||
@@ -1,5 +1,8 @@
|
|||||||
# Erupe Community Edition
|
# Erupe Community Edition
|
||||||
|
|
||||||
|
[](https://github.com/Houmgaor/Erupe/actions/workflows/go.yml)
|
||||||
|
[](https://github.com/Houmgaor/Erupe/actions/workflows/test.yml)
|
||||||
|
|
||||||
Erupe is a community-maintained server emulator for Monster Hunter Frontier written in Go. It is a complete reverse-engineered solution to self-host a Monster Hunter Frontier server, using no code from Capcom.
|
Erupe is a community-maintained server emulator for Monster Hunter Frontier written in Go. It is a complete reverse-engineered solution to self-host a Monster Hunter Frontier server, using no code from Capcom.
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
|
|||||||
Reference in New Issue
Block a user