Skip to content

Commit

Permalink
Chat server updated
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMartynenko committed Mar 15, 2024
1 parent dbeccf6 commit ca08b61
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@ name: Go

on:
push:
branches: [ main, master ]
branches: [ main ]
pull_request:
branches: [ main, master ]
branches: [ main ]

jobs:
build-and-test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
cache-dependency-path: go.sum
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
cache-dependency-path: go.sum

- name: Build
run: go build -o ./bin/ -v ./...
- name: Build
run: go build -o ./bin/ -v ./...

- name: Test
run: go test -v ./...
- name: Test
run: go test -v ./...

linter:
name: lint
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
Expand All @@ -39,16 +39,16 @@ jobs:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: v1.53
version: v1.56.2

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
#
# Note: By default, the `.golangci.yml` file should be at the root of the repository.
# The location of the configuration file can be changed by using `--api_config=`
args: --timeout=30m --api_config=./.golangci.pipeline.yaml --issues-exit-code=0
# The location of the configuration file can be changed by using `--config=`
args: --timeout=30m --config=./.golangci.pipeline.yaml --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
Expand Down

0 comments on commit ca08b61

Please sign in to comment.