Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/ociregistry-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "ociregistry: lint"

on:
pull_request:
paths:
- "ociregistry/**"
- ".github/workflows/ociregistry-lint.yml"

permissions:
contents: read

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ociregistry
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version-file: ociregistry/go.mod
cache-dependency-path: ociregistry/go.sum

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: v2.10.1
working-directory: ociregistry
32 changes: 32 additions & 0 deletions .github/workflows/ociregistry-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "ociregistry: tag"

on:
push:
branches:
- main
paths:
- "ociregistry/**"
- ".github/workflows/ociregistry-tag.yml"

permissions:
contents: write

jobs:
tag:
name: Bump version and tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0"

- name: Bump version and push tag
uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
INITIAL_VERSION: 0.0.0
TAG_PREFIX: ociregistry/v
MAJOR_STRING_TOKEN: (MAJOR)
MINOR_STRING_TOKEN: (MINOR)
BRANCH_HISTORY: compare
28 changes: 28 additions & 0 deletions .github/workflows/ociregistry-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "ociregistry: test"

on:
pull_request:
paths:
- "ociregistry/**"
- ".github/workflows/ociregistry-test.yml"

permissions:
contents: read

jobs:
test:
name: Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: ociregistry
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version-file: ociregistry/go.mod
cache-dependency-path: ociregistry/go.sum

- name: Run tests
run: go test -race -count=1 ./...