Merge pull request #2 from radost5454/test

test
This commit is contained in:
radost5454 2025-06-03 17:15:27 +03:00 committed by GitHub
commit 4577b47b80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,48 +1,48 @@
name: i386 linux tests # name: i386 linux tests
on: # on:
push: # push:
branches: [ master ] # branches: [ master ]
pull_request: # pull_request:
branches: [ master ] # branches: [ master ]
workflow_dispatch: # workflow_dispatch:
jobs: # jobs:
lint: # lint:
name: Lint # name: Lint
runs-on: self-hosted # runs-on: self-hosted
steps: # steps:
- uses: actions/checkout@v4 # - uses: actions/checkout@v4
# Cache build tools to avoid downloading them each time # # Cache build tools to avoid downloading them each time
- uses: actions/cache@v4 # - uses: actions/cache@v4
with: # with:
path: build/cache # path: build/cache
key: ${{ runner.os }}-build-tools-cache-${{ hashFiles('build/checksums.txt') }} # key: ${{ runner.os }}-build-tools-cache-${{ hashFiles('build/checksums.txt') }}
- name: Set up Go # - name: Set up Go
uses: actions/setup-go@v5 # uses: actions/setup-go@v5
with: # with:
go-version: 1.23.0 # go-version: 1.23.0
cache: false # cache: false
- name: Run linters # - name: Run linters
run: | # run: |
go run build/ci.go lint # go run build/ci.go lint
go run build/ci.go check_generate # go run build/ci.go check_generate
go run build/ci.go check_baddeps # go run build/ci.go check_baddeps
build: # build:
runs-on: self-hosted # runs-on: self-hosted
steps: # steps:
- uses: actions/checkout@v4 # - uses: actions/checkout@v4
- name: Set up Go # - name: Set up Go
uses: actions/setup-go@v5 # uses: actions/setup-go@v5
with: # with:
go-version: 1.24.0 # go-version: 1.24.0
cache: false # cache: false
- name: Run tests # - name: Run tests
run: go test -short ./... # run: go test -short ./...
env: # env:
GOOS: linux # GOOS: linux
GOARCH: 386 # GOARCH: 386