Skip to content

Commit

Permalink
Skip testing stage which requires a GPU.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpotter92 committed Jan 20, 2024
1 parent c03d27c commit 684658a
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yaml
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
36 changes: 34 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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

0 comments on commit 684658a

Please sign in to comment.