Skip to content

Fix incorrect bind call #812

Fix incorrect bind call

Fix incorrect bind call #812

Workflow file for this run

name: Test, Build & Publish
on: [push]
jobs:
lint-ts:
runs-on: ubuntu-20.04
env:
GBANS_GENERAL_STEAM_KEY: ${{ secrets.GBANS_GENERAL_STEAM_KEY }}
steps:
- uses: actions/checkout@v3
- name: Install modules
working-directory: ./frontend
run: yarn
- name: Prettier
working-directory: ./frontend
run: yarn run prettier:check
- name: ESLint
working-directory: ./frontend
run: yarn run eslint:check
lint-golangci:
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-go@v4
with:
go-version: 'stable'
cache: true
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: 'latest'
args: --timeout=10m
- run: make lint_golangci
staticcheck:
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-go@v4
with:
go-version: 'stable'
- run: go install honnef.co/go/tools/cmd/staticcheck@latest
- uses: actions/checkout@v3
- run: make static
lint-codeql:
name: Analyze
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
language: [ 'go', 'javascript' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
docker-test:
needs: [lint-ts, lint-golangci, lint-codeql, staticcheck]
runs-on: ubuntu-20.04
env:
GBANS_GENERAL_STEAM_KEY: ${{ secrets.GBANS_GENERAL_STEAM_KEY }}
steps:
- uses: actions/checkout@v3
- name: Build the docker-compose stack
run: make docker_test
docker-publish:
needs: [docker-test]
runs-on: ubuntu-20.04
if: github.ref == 'refs/heads/master'
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build gbans image
run: |
docker build . --tag ghcr.io/leighmacdonald/gbans:${GITHUB_REF##*/}
docker push ghcr.io/leighmacdonald/gbans:${GITHUB_REF##*/}