Skip to content

Commit 7804180

Browse files
committed
chore: unifying workflows
1 parent 07d4fd4 commit 7804180

File tree

4 files changed

+24
-58
lines changed

4 files changed

+24
-58
lines changed

.github/workflows/build.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths-ignore:
7+
- '*.md'
8+
- '*.puml'
9+
- '.github/workflows/release.yaml'
10+
pull_request:
11+
branches:
12+
- main
13+
jobs:
14+
build:
15+
uses: traefik-plugins/workflows/.github/workflows/build.yaml@main

.github/workflows/build.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
1-
name: Publish release
1+
name: Release
22
on:
3-
workflow_dispatch
3+
workflow_dispatch: {}
44
jobs:
5-
rel_job:
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v3
9-
with:
10-
fetch-depth: 0
11-
- uses: actions/setup-node@v3
12-
with:
13-
node-version: 18
14-
- uses: wagoid/commitlint-github-action@v5
15-
- uses: bahmutov/npm-install@v1
16-
- run: npx semantic-release
17-
env:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
5+
release:
6+
uses: traefik-plugins/workflows/.github/workflows/release.yaml@main

justfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# list available receipes
32
@default:
43
just --list
@@ -20,6 +19,7 @@ test-go:
2019
# run tests via yaegi
2120
test-yaegi: && _clean-yaegi
2221
#!/usr/bin/env bash
22+
set -euox
2323

2424
TMP=$(mktemp -d yaegi.XXXXXX -p /tmp)
2525
WRK="${TMP}/go/src/github.com/traefik-plugins"
@@ -33,3 +33,7 @@ test: _prepare lint test-go test-yaegi
3333

3434
clean:
3535
rm -rf *.mmdb
36+
37+
vendor:
38+
go mod vendor
39+

0 commit comments

Comments
 (0)