mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-03 07:07:25 -05:00
Merge pull request #1011 from essial/master
Fiddling with actions names
This commit is contained in:
commit
72f34ea14e
10
.github/workflows/pullRequest.yml
vendored
10
.github/workflows/pullRequest.yml
vendored
@ -1,8 +1,16 @@
|
|||||||
---
|
---
|
||||||
name: pull_request
|
name: pull_request
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: build
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
|
39
.github/workflows/pushToMaster.yml
vendored
39
.github/workflows/pushToMaster.yml
vendored
@ -1,39 +0,0 @@
|
|||||||
---
|
|
||||||
name: build
|
|
||||||
# "on":
|
|
||||||
# push:
|
|
||||||
# branches:
|
|
||||||
# - master
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build
|
|
||||||
runs-on: self-hosted
|
|
||||||
steps:
|
|
||||||
- name: Set up Go 1.14
|
|
||||||
uses: actions/setup-go@v2.1.3
|
|
||||||
with:
|
|
||||||
go-version: 1.14
|
|
||||||
id: go
|
|
||||||
|
|
||||||
- name: Check out code
|
|
||||||
uses: actions/checkout@v2.3.4
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y xvfb libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgl1-mesa-dev libsdl2-dev libasound2-dev > /dev/null 2>&1
|
|
||||||
|
|
||||||
- name: Run golangci-lint
|
|
||||||
continue-on-error: false
|
|
||||||
uses: golangci/golangci-lint-action@v2.3.0
|
|
||||||
with:
|
|
||||||
version: v1.32
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
env:
|
|
||||||
DISPLAY: ":99.0"
|
|
||||||
run: |
|
|
||||||
xvfb-run --auto-servernum go test -v -race ./...
|
|
||||||
|
|
||||||
- name: Build binary
|
|
||||||
run: go build .
|
|
Loading…
Reference in New Issue
Block a user