Skip to content

Update github/codeql-action action to v3.28.7 #1734

Update github/codeql-action action to v3.28.7

Update github/codeql-action action to v3.28.7 #1734

Workflow file for this run

name: Tests
on:
push:
branches:
- "**"
tags-ignore:
- "v*"
pull_request:
branches:
- main
permissions:
contents: read
jobs:
go-test:
name: Go Unit Tests
permissions:
id-token: write
contents: read
uses: harryzcy/github-actions/.github/workflows/go.yml@main
integration-test:
name: Integration Tests
needs: go-test
strategy:
matrix:
go-version: ["1.22", "1.23"]
runs-on: ubuntu-24.04
permissions:
id-token: write
services:
dynamodb:
image: amazon/dynamodb-local@sha256:cf8cebd061f988628c02daff10fdb950a54478feff9c52f6ddf84710fe3c3906 # v2.2.0
ports:
- 8000:8000
steps:
- uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Run integration tests
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./integration/...
env:
DYNAMODB_TABLE: test
DYNAMODB_ORIGINAL_INDEX: OriginalMessageIDIndex
- name: Upload coverage to Codecov
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
with:
file: ./coverage.txt
use_oidc: true
scripts:
name: Script Tests
strategy:
matrix:
os: [ubuntu-24.04, macos-14]
node-version: [18.x, 20.x]
runs-on: ${{ matrix.os }}
steps:
- uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Install serverless
run: npm install serverless@v3
- name: Copy over config
run: cp serverless.yml.example serverless.yml
- name: Test
run: npx serverless print