Skip to content

Refactor LeetCode repo structure (first pass): range-based layout, split tests, CI/hook hardening #7

Refactor LeetCode repo structure (first pass): range-based layout, split tests, CI/hook hardening

Refactor LeetCode repo structure (first pass): range-based layout, split tests, CI/hook hardening #7

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: localhost/leetcode/go.mod
cache-dependency-path: |
localhost/leetcode/go.sum
- name: Verify format and tests
run: make verify
lint:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: localhost/leetcode/go.mod
cache-dependency-path: |
localhost/leetcode/go.sum
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.8.0
install-mode: goinstall
working-directory: localhost/leetcode
args: --timeout=5m