Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit e03228d

Browse files
authored
chore: add release github workflows (#18)
* Add release github workflows * Add dependecy review * Fix license in .github * Add license * Remove github skip dirs
1 parent eea6380 commit e03228d

File tree

5 files changed

+109
-2
lines changed

5 files changed

+109
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Build
2929
run: make install
30-
30+
3131
- name: Unit tests
3232
run: make test
3333

@@ -36,7 +36,7 @@ jobs:
3636
export PATH=$PATH:$(go env GOPATH)/bin
3737
go get github.com/securego/gosec/cmd/gosec
3838
make check
39-
39+
4040
- name: Lint check
4141
uses: golangci/golangci-lint-action@v3
4242
with:

.github/workflows/code-quality.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# The Licensed Work is (c) 2022 Sygma
2+
# SPDX-License-Identifier: BUSL-1.1
3+
4+
name: "Code Scanning - Action"
5+
6+
on:
7+
push:
8+
branches: [main]
9+
pull_request:
10+
branches: [main]
11+
schedule:
12+
# ┌───────────── minute (0 - 59)
13+
# │ ┌───────────── hour (0 - 23)
14+
# │ │ ┌───────────── day of the month (1 - 31)
15+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
16+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
17+
# │ │ │ │ │
18+
# │ │ │ │ │
19+
# │ │ │ │ │
20+
# * * * * *
21+
- cron: '30 1 * * 0'
22+
23+
jobs:
24+
CodeQL-Build:
25+
runs-on: ubuntu-latest
26+
27+
permissions:
28+
security-events: write
29+
actions: read
30+
contents: read
31+
32+
steps:
33+
- name: Checkout repository
34+
uses: actions/checkout@v3
35+
36+
- name: Initialize CodeQL
37+
uses: github/codeql-action/init@v2
38+
with:
39+
languages: go
40+
41+
- name: Autobuild
42+
uses: github/codeql-action/autobuild@v2
43+
44+
- name: Perform CodeQL Analysis
45+
uses: github/codeql-action/analyze@v2
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# The Licensed Work is (c) 2022 Sygma
2+
# SPDX-License-Identifier: BUSL-1.1
3+
4+
name: 'Dependency Review'
5+
on: [pull_request]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
dependency-review:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: 'Checkout Repository'
15+
uses: actions/checkout@v3
16+
- name: 'Dependency Review'
17+
uses: actions/dependency-review-action@v2

.github/workflows/pr.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# The Licensed Work is (c) 2022 Sygma
2+
# SPDX-License-Identifier: BUSL-1.1
3+
4+
on: [pull_request]
5+
name: "Semantic PR"
6+
7+
jobs:
8+
validation:
9+
name: Validate PR title
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: amannn/action-semantic-pull-request@v4
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
with:
16+
types: |
17+
fix
18+
feat
19+
chore
20+
validateSingleCommit: true
21+
validateSingleCommitMatchesPrTitle: false

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright 2021 ChainSafe Systems
2+
# SPDX-License-Identifier: LGPL-3.0-only
3+
4+
name: Create Sygma fee oracle release
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
jobs:
11+
release-please:
12+
name: release
13+
runs-on: ubuntu-latest
14+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
15+
steps:
16+
17+
- uses: actions/checkout@v2
18+
- uses: google-github-actions/release-please-action@v3
19+
id: release
20+
with:
21+
token: ${{ secrets.RELEASE_TOKEN }}
22+
release-type: go
23+
package-name: release-please-action
24+
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false},{"type":"revert","hidden":true}]'

0 commit comments

Comments
 (0)