Skip to content

build(deps): bump actions/create-github-app-token from 1 to 3 #62

build(deps): bump actions/create-github-app-token from 1 to 3

build(deps): bump actions/create-github-app-token from 1 to 3 #62

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
workflow_call:
permissions:
contents: write
jobs:
fmt:
if: github.actor != 'github-actions[bot]'
name: Format
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Check formatting
run: |
unformatted=$(gofmt -l .)
if [ -n "$unformatted" ]; then
echo "The following files are not formatted:"
echo "$unformatted"
exit 1
fi
lint:
if: github.actor != 'github-actions[bot]'
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v7
test:
if: github.actor != 'github-actions[bot]'
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Go test
run: go test ./...
- name: Fuzz smoke test
run: go test -run=FuzzSanitizePhone -fuzz=FuzzSanitizePhone -fuzztime=10s -timeout=60s ./generators