forked from DMXStage/dmxconnect
fixed
This commit is contained in:
@@ -1,52 +0,0 @@
|
|||||||
name: Build software
|
|
||||||
run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
env:
|
|
||||||
# Necessary for most environments as build failure can occur due to OOM issues
|
|
||||||
NODE_OPTIONS: "--max-old-space-size=4096"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
prepare:
|
|
||||||
strategy:
|
|
||||||
# Failure in one platform build won't impact the others
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
build:
|
|
||||||
- name: 'DMXConnect'
|
|
||||||
platform: 'linux/amd64'
|
|
||||||
os: 'ubuntu-latest'
|
|
||||||
# - name: 'DMXConnect'
|
|
||||||
# platform: 'windows/amd64'
|
|
||||||
# os: 'windows-latest'
|
|
||||||
# - name: 'DMXConnect'
|
|
||||||
# platform: 'darwin/universal'
|
|
||||||
# os: 'macos-latest'
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.build.os }}
|
|
||||||
timeout-minutes: 30
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
|
|
||||||
- name: Build wails
|
|
||||||
uses: dAppServer/wails-build-action@v2.2
|
|
||||||
id: build
|
|
||||||
with:
|
|
||||||
build-name: ${{ matrix.build.name }}
|
|
||||||
build-platform: ${{ matrix.build.platform }}
|
|
||||||
package: false
|
|
||||||
go-version: '1.21'
|
|
||||||
|
|
||||||
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
|
||||||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
|
|
||||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
|
||||||
- name: List files in the repository
|
|
||||||
run: |
|
|
||||||
ls ${{ github.workspace }}
|
|
||||||
- run: echo "🍏 Job finished with status ${{ job.status }}."
|
|
||||||
46
.gitea/workflows/check.yaml
Normal file
46
.gitea/workflows/check.yaml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
name: Check software
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
prepare:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '^1.21.4'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: go mod tidy
|
||||||
|
|
||||||
|
- name: Install golangci-lint
|
||||||
|
run: |
|
||||||
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1
|
||||||
|
|
||||||
|
- name: Run golangci-lint
|
||||||
|
run: |
|
||||||
|
$(go env GOPATH)/bin/golangci-lint run
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: go build -v ./...
|
||||||
|
|
||||||
|
- name: Run tests with race detector
|
||||||
|
run: go test -v -race ./...
|
||||||
|
|
||||||
|
- name: Run tests and generate coverage report
|
||||||
|
run: go test -v -coverprofile=coverage.out ./...
|
||||||
|
|
||||||
|
- name: Display coverage
|
||||||
|
run: go tool cover -func=coverage.out
|
||||||
|
|
||||||
|
- name: Upload coverage report
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: coverage-report
|
||||||
|
path: coverage.out
|
||||||
Reference in New Issue
Block a user