Skip to content

Commit

Permalink
chore(ci): setup self-hosted runner for ci (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWhiteWu authored Dec 20, 2021
1 parent 8203bba commit 188e829
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: self-hosted
permissions:
actions: read
contents: read
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17

- uses: actions/cache@v2
with:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: License Check

on: push

jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2

- name: Check License Header
uses: apache/skywalking-eyes@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: pull_request

jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v2

Expand All @@ -14,7 +14,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17

- uses: actions/cache@v2
with:
Expand All @@ -24,4 +24,4 @@ jobs:
${{ runner.os }}-go-
- name: Benchmark
run: go test -bench=. -benchmem -run=none ./...
run: GOMAXPROCS=4 go test -bench=. -benchmem -run=none ./...
4 changes: 2 additions & 2 deletions .github/workflows/push-check-go115.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push

jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v2

Expand All @@ -21,4 +21,4 @@ jobs:
${{ runner.os }}-go-
- name: Unit Test
run: go test -v -covermode=atomic -coverprofile=coverage.out ./...
run: GOMAXPROCS=4 go test -v -covermode=atomic -coverprofile=coverage.out ./...
4 changes: 2 additions & 2 deletions .github/workflows/push-check-go116.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push

jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v2

Expand All @@ -21,4 +21,4 @@ jobs:
${{ runner.os }}-go-
- name: Unit Test
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
run: GOMAXPROCS=4 go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
9 changes: 2 additions & 7 deletions .github/workflows/push-check-go117.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push

jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v2

Expand All @@ -20,10 +20,5 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Check License Header
uses: apache/skywalking-eyes@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Unit Test
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
run: GOMAXPROCS=4 go test -v -race -covermode=atomic -coverprofile=coverage.out ./...

0 comments on commit 188e829

Please sign in to comment.