Files
Elisei Roca 5ce0c4582f Squashed 'mark/' changes from b3a6f1e..b85e404
b85e404 Fix lint
1433900 Bump to go 1.25
517a3c7 Add missed template to README
311c10a build(deps): bump github.com/urfave/cli/v3 from 3.6.1 to 3.6.2
c1c9a13 parse "linenumbers" in code block
5bb400c add view-file template
5270864 build(deps): bump golang.org/x/text from 0.32.0 to 0.33.0
30f3200 build(deps): bump github.com/bmatcuk/doublestar/v4 from 4.9.1 to 4.9.2
16f72b0 feat: extend link resolution to support blog posts
a334c1c feat: enhance Confluence link generation by utilizing base URL from API response
bb4d4e2 build(deps): bump github.com/yuin/goldmark from 1.7.13 to 1.7.16
2784c92 fix: update test cases for large page IDs to reflect Confluence Cloud examples
6d5a9fb feat: implement GenerateTinyLink function and associated tests for Confluence tiny link generation
ef560d0 fix: resolve link space inheritance and enhance Confluence URL normalization tests
0dd5ea9 Clean up comments in normalizeConfluenceWebUIPath
b2efff8 Update example path in link.go comments
0a821fb Update link_test.go
b4370c0 feat: add normalizeConfluenceWebUIPath function and tests for URL rewriting
4c2a3c9 Bump DavidAnson/markdownlint-cli2-action from 21 to 22
967efde README.md: Update help output

git-subtree-dir: mark
git-subtree-split: b85e40402c
2026-02-04 16:31:36 +01:00

114 lines
2.5 KiB
YAML

name: continuous-integration
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
env:
GO_VERSION: "1.25.6"
jobs:
# Runs Golangci-lint on the source code
ci-go-lint:
name: ci-go-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v6
- name: Set up Go 1.x
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
# Runs markdown-lint on the markdown files
ci-markdown-lint:
name: ci-markdown-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v6
- name: markdownlint-cli2-action
uses: DavidAnson/markdownlint-cli2-action@v22
# Executes Unit Tests
ci-unit-tests:
name: ci-unit-tests
runs-on: ubuntu-22.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v6
- name: Set up Go 1.x
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: Run unit tests
run: |
make test
# Builds mark binary
ci-build:
name: ci-build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v6
- name: Set up Go 1.x
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
id: go
- name: Build mark
run: |
make build
# Build and push Dockerimage
ci-docker-build:
name: ci-docker-build
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build only (on commits)
uses: docker/build-push-action@v6
if: ${{ github.ref_type != 'tag' }}
with:
push: false
tags: kovetskiy/mark:latest
- name: Login to Docker Hub
uses: docker/login-action@v3
if: ${{ github.ref_type == 'tag' }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push (on tag)
uses: docker/build-push-action@v6
if: ${{ github.ref_type == 'tag' }}
with:
push: true
platforms: linux/amd64,linux/arm64
tags: |
kovetskiy/mark:${{ github.ref_name }}
kovetskiy/mark:latest