Skip to content

chore: bump actions/checkout from 3.6.0 to 4.1.5 #1908

chore: bump actions/checkout from 3.6.0 to 4.1.5

chore: bump actions/checkout from 3.6.0 to 4.1.5 #1908

Workflow file for this run

name: unit-tests
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
branches: [main]
paths-ignore: ["docs/**", "**.md", "**.mdx", "**.png", "**.jpg"]
pull_request:
branches: [main, release-**]
paths-ignore: ["docs/**", "**.md", "**.mdx", "**.png", "**.jpg"]
permissions:
contents: read
packages: write
env:
GO_VERSION: "1.22"
jobs:
unit-tests:
runs-on: ubuntu-latest
environment: unit-tests
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Check out the code
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
submodules: true
fetch-depth: 0
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ env.GO_VERSION }}
- name: Run unit tests & Generate coverage
run: |
make unit-test
- name: Run inference api unit tests
run: |
make inference-api-e2e
- name: Upload Codecov report
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
with:
## Comma-separated list of files to upload
files: ./coverage.txt
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}