Skip to content

Bump node from 18.14.0 to 20.7.0 #1968

Bump node from 18.14.0 to 20.7.0

Bump node from 18.14.0 to 20.7.0 #1968

Workflow file for this run

name: Trigger test suite
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Test the catalyst project
runs-on: ubuntu-latest-m
steps:
- name: Check out code
uses: actions/checkout@v3
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: Set up go
id: go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
go-version: '1.20.5'
cache: true
cache-dependency-path: go.sum
- name: Install go modules
if: steps.go.outputs.cache-hit != 'true'
run: go mod download
- name: go fmt
run: |
go fmt ./...
git diff --exit-code
- name: Run Revive Action by building from repository
uses: docker://morphy/revive-action:v2
with:
config: config.toml
- name: misspell
uses: reviewdog/action-misspell@v1
- name: Install FFMPEG
uses: FedericoCarboni/setup-ffmpeg@v2
- name: Run tests with coverage
run: go test --covermode=atomic --coverprofile=coverage.out $(go list ./... | grep -v 'test/e2e')
- name: Build Docker image
run: make docker DOCKER_TAG=catalyst-e2e-test
- name: Run E2E tests
run: go test $(go list ./... | grep 'test/e2e') --timeout 15m --image catalyst-e2e-test
- name: Upload coverage reports
uses: codecov/codecov-action@v3
with:
files: ./coverage.out
name: ${{ github.event.repository.name }}
verbose: true
codeql:
name: Perform CodeQL analysis
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: go
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2