github: try out self-hosted runner
Close #2943. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
601c26bbe6
commit
44fc241c34
1 changed files with 16 additions and 7 deletions
23
.github/workflows/run_tests.yml
vendored
23
.github/workflows/run_tests.yml
vendored
|
@ -15,7 +15,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
|
@ -29,7 +29,7 @@ jobs:
|
||||||
|
|
||||||
gomodcheck:
|
gomodcheck:
|
||||||
name: Check internal dependencies
|
name: Check internal dependencies
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -41,7 +41,7 @@ jobs:
|
||||||
|
|
||||||
codeql:
|
codeql:
|
||||||
name: CodeQL
|
name: CodeQL
|
||||||
runs-on: ubuntu-latest
|
runs-on: [self-hosted, Linux, X64]
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -55,6 +55,11 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# Go needs to be installed for CodeQL tool autobuild.
|
||||||
|
- uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '1.20'
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v2
|
uses: github/codeql-action/init@v2
|
||||||
|
@ -86,7 +91,7 @@ jobs:
|
||||||
|
|
||||||
test_cover:
|
test_cover:
|
||||||
name: Coverage
|
name: Coverage
|
||||||
runs-on: ubuntu-20.04
|
runs-on: [self-hosted, Linux, X64]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
@ -124,10 +129,10 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-20.04, windows-2022, macos-12]
|
os: [ubuntu-20.04, windows-2022, macos-12, [self-hosted, Linux, X64]]
|
||||||
go_versions: [ '1.18', '1.19', '1.20' ]
|
go_versions: [ '1.18', '1.19', '1.20' ]
|
||||||
exclude:
|
exclude:
|
||||||
# Only latest Go version for Windows and MacOS.
|
# Only latest Go version for Windows, MacOS and Ubuntu.
|
||||||
- os: windows-2022
|
- os: windows-2022
|
||||||
go_versions: '1.18'
|
go_versions: '1.18'
|
||||||
- os: windows-2022
|
- os: windows-2022
|
||||||
|
@ -136,8 +141,12 @@ jobs:
|
||||||
go_versions: '1.18'
|
go_versions: '1.18'
|
||||||
- os: macos-12
|
- os: macos-12
|
||||||
go_versions: '1.19'
|
go_versions: '1.19'
|
||||||
# Exclude latest Go version for Ubuntu as Coverage uses it.
|
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-20.04
|
||||||
|
go_versions: '1.18'
|
||||||
|
- os: ubuntu-20.04
|
||||||
|
go_versions: '1.19'
|
||||||
|
# Exclude latest Go version for self-hosted as Coverage uses it.
|
||||||
|
- os: [self-hosted, Linux, X64]
|
||||||
go_versions: '1.20'
|
go_versions: '1.20'
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in a new issue