mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-18 04:59:02 +02:00
renamed workflow && only push on develop && added factorio credentials
This commit is contained in:
parent
db95a1209d
commit
f4dbc2bdea
@ -1,4 +1,7 @@
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
env:
|
||||||
|
factorio_password: ${{ secrets.FACTORIO_USERNAME }}
|
||||||
|
factorio_username: ${{ secrets.FACTORIO_PASSWORD }}
|
||||||
jobs:
|
jobs:
|
||||||
test-npm:
|
test-npm:
|
||||||
strategy:
|
strategy:
|
||||||
@ -22,11 +25,14 @@ jobs:
|
|||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go }}
|
go-version: ${{ matrix.go }}
|
||||||
- run: cd src; go test ./...
|
- if: ${{ secrets.FACTORIO_USERNAME }}
|
||||||
|
run: cd src; go test ./... -v
|
||||||
|
- if: !${{ secrets.FACTORIO_USERNAME }}
|
||||||
|
run: cd src; go test ./... -v -test.short
|
||||||
docker-push:
|
docker-push:
|
||||||
needs: [test-npm, test-go]
|
needs: [test-npm, test-go]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/github-actions'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
@ -44,4 +50,4 @@ jobs:
|
|||||||
context: ./docker/
|
context: ./docker/
|
||||||
file: ./docker/Dockerfile-local
|
file: ./docker/Dockerfile-local
|
||||||
push: true
|
push: true
|
||||||
tags: ofsm/ofsm:github-actions
|
tags: ofsm/ofsm:develop
|
Loading…
x
Reference in New Issue
Block a user