-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip testing stage which requires a GPU.
- Loading branch information
1 parent
c03d27c
commit 684658a
Showing
2 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
|
||
- package-ecosystem: gomod | ||
directory: / | ||
schedule: | ||
interval: daily | ||
|
||
- package-ecosystem: docker | ||
directory: /.github/runner/Dockerfile | ||
schedule: | ||
interval: weekly |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,13 +50,14 @@ jobs: | |
run: | | ||
rm install_ffmpeg.sh || true | ||
curl -LO https://raw.githubusercontent.com/livepeer/go-livepeer/master/install_ffmpeg.sh | ||
chmod +x ./install_ffmpeg.sh | ||
- name: Cache ffmpeg | ||
id: cache-ffmpeg | ||
uses: actions/cache@v3 | ||
with: | ||
path: /home/runner/compiled | ||
key: ${{ runner.os }}-ffmpeg-${{ hashFiles('**/install_ffmpeg.sh') }} | ||
key: ${{ runner.os }}-ffmpeg-${{ hashFiles('./install_ffmpeg.sh') }} | ||
|
||
- name: Set build environment | ||
run: | | ||
|
@@ -100,4 +101,35 @@ jobs: | |
- name: Test | ||
shell: bash | ||
run: PATH="/github/home/compiled/bin:$PATH" bash ./test.sh | ||
run: PATH="/github/home/compiled/bin:$PATH" go test -coverprofile cover.out ./... | ||
|
||
- name: Upload coverage reports | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./cover.out | ||
name: ${{ github.event.repository.name }} | ||
verbose: true | ||
|
||
codeql: | ||
name: Perform CodeQL analysis | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
# Check https://github.com/livepeer/go-livepeer/pull/1891 | ||
# for ref value discussion | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: go | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v3 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 |