added update methods in session in order to make fake inventories possible, with minimal changes #2389
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Set up Go 1.21 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
id: go | |
- name: Get dependencies | |
run: | | |
mkdir -p $GOPATH/bin | |
export PATH=$PATH:$GOPATH/bin | |
- name: Build | |
run: go build -o dragonfly_exe -v . | |
- name: Vet | |
run: go vet ./... | |
- name: Formatting | |
run: test -z $(go fmt ./...) | |
- name: Staticcheck | |
uses: dominikh/[email protected] | |
with: | |
install-go: false |