Skip to content

Commit 6a6f413

Browse files
chore(org): LizardByte standardization (#1)
1 parent ee5e590 commit 6a6f413

39 files changed

+1053
-5903
lines changed

.github/dependabot.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
---
2+
# This file is centrally managed in https://github.com/<organization>/.github/
3+
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
4+
# the above-mentioned repo.
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "cargo"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
time: "07:30"
13+
open-pull-requests-limit: 10
14+
15+
- package-ecosystem: "docker"
16+
directory: "/"
17+
schedule:
18+
interval: "daily"
19+
time: "08:00"
20+
open-pull-requests-limit: 10
21+
22+
- package-ecosystem: "github-actions"
23+
directory: "/"
24+
schedule:
25+
interval: "daily"
26+
time: "08:30"
27+
open-pull-requests-limit: 10
28+
groups:
29+
docker-actions:
30+
applies-to: version-updates
31+
patterns:
32+
- "docker/*"
33+
github-actions:
34+
applies-to: version-updates
35+
patterns:
36+
- "actions/*"
37+
- "github/*"
38+
lizardbyte-actions:
39+
applies-to: version-updates
40+
patterns:
41+
- "LizardByte/*"
42+
43+
- package-ecosystem: "npm"
44+
directory: "/"
45+
schedule:
46+
interval: "daily"
47+
time: "09:00"
48+
open-pull-requests-limit: 10
49+
groups:
50+
dev-dependencies:
51+
applies-to: version-updates
52+
dependency-type: "development"
53+
54+
- package-ecosystem: "nuget"
55+
directory: "/"
56+
schedule:
57+
interval: "daily"
58+
time: "09:30"
59+
open-pull-requests-limit: 10
60+
61+
- package-ecosystem: "pip"
62+
directory: "/"
63+
schedule:
64+
interval: "daily"
65+
time: "10:00"
66+
open-pull-requests-limit: 10
67+
groups:
68+
pytest-dependencies:
69+
applies-to: version-updates
70+
patterns:
71+
- "pytest*"
72+
73+
- package-ecosystem: "gitsubmodule"
74+
directory: "/"
75+
schedule:
76+
interval: "daily"
77+
time: "10:30"
78+
open-pull-requests-limit: 10

.github/label-actions.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
# This file is centrally managed in https://github.com/<organization>/.github/
3+
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
4+
# the above-mentioned repo.
5+
6+
# Configuration for Label Actions - https://github.com/dessant/label-actions
7+
8+
added:
9+
comment: >
10+
This feature has been added and will be available in the next release.
11+
fixed:
12+
comment: >
13+
This issue has been fixed and will be available in the next release.
14+
invalid:duplicate:
15+
comment: >
16+
:wave: @{issue-author}, this appears to be a duplicate of a pre-existing issue.
17+
close: true
18+
lock: true
19+
unlabel: 'status:awaiting-triage'
20+
21+
-invalid:duplicate:
22+
reopen: true
23+
unlock: true
24+
25+
invalid:support:
26+
comment: >
27+
:wave: @{issue-author}, we use the issue tracker exclusively for bug reports.
28+
However, this issue appears to be a support request. Please use our
29+
[Support Center](https://app.lizardbyte.dev/support) for support issues. Thanks.
30+
close: true
31+
lock: true
32+
lock-reason: 'off-topic'
33+
unlabel: 'status:awaiting-triage'
34+
35+
-invalid:support:
36+
reopen: true
37+
unlock: true
38+
39+
invalid:template-incomplete:
40+
issues:
41+
comment: >
42+
:wave: @{issue-author}, please edit your issue to complete the template with
43+
all the required info. Your issue will be automatically closed in 5 days if
44+
the template is not completed. Thanks.
45+
prs:
46+
comment: >
47+
:wave: @{issue-author}, please edit your PR to complete the template with
48+
all the required info. Your PR will be automatically closed in 5 days if
49+
the template is not completed. Thanks.

.github/semantic.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
# This file is centrally managed in https://github.com/<organization>/.github/
3+
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in
4+
# the above-mentioned repo.
5+
6+
# This is the configuration file for https://github.com/Ezard/semantic-prs
7+
8+
enabled: true
9+
titleOnly: true # We only use the PR title as we squash and merge
10+
commitsOnly: false
11+
titleAndCommits: false
12+
anyCommit: false
13+
allowMergeCommits: false
14+
allowRevertCommits: false

.github/workflows/ci.yml

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
---
2+
# This workflow will run tests using node and then publish a package to GitHub Packages on push events to master.
3+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
4+
5+
name: CI
6+
7+
on:
8+
pull_request:
9+
branches:
10+
- master
11+
types:
12+
- opened
13+
- synchronize
14+
- reopened
15+
push:
16+
branches:
17+
- master
18+
19+
concurrency:
20+
group: "${{ github.workflow }}-${{ github.ref }}"
21+
cancel-in-progress: true
22+
23+
jobs:
24+
setup_release:
25+
name: Setup Release
26+
outputs:
27+
publish_release: ${{ steps.setup_release.outputs.publish_release }}
28+
release_body: ${{ steps.setup_release.outputs.release_body }}
29+
release_commit: ${{ steps.setup_release.outputs.release_commit }}
30+
release_generate_release_notes: ${{ steps.setup_release.outputs.release_generate_release_notes }}
31+
release_tag: ${{ steps.setup_release.outputs.release_tag }}
32+
release_version: ${{ steps.setup_release.outputs.release_version }}
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v4
37+
38+
- name: Setup Release
39+
id: setup_release
40+
uses: LizardByte/[email protected]
41+
with:
42+
github_token: ${{ secrets.GITHUB_TOKEN }}
43+
44+
build:
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Checkout
48+
uses: actions/checkout@v4
49+
50+
- name: Setup node
51+
uses: actions/setup-node@v4
52+
with:
53+
node-version: latest
54+
55+
- name: Install dependencies
56+
run: npm install
57+
58+
- name: Test
59+
id: test
60+
env:
61+
FORCE_COLOR: true
62+
run: |
63+
npm test
64+
65+
- name: Build
66+
env:
67+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
68+
run: npm run build
69+
70+
- name: Upload test results to Codecov
71+
# any except canceled or skipped
72+
if: >-
73+
always() &&
74+
(steps.test.outcome == 'success' || steps.test.outcome == 'failure') &&
75+
startsWith(github.repository, 'LizardByte/')
76+
uses: codecov/test-results-action@v1
77+
with:
78+
fail_ci_if_error: true
79+
files: ./junit.xml,!./cache
80+
token: ${{ secrets.CODECOV_TOKEN }}
81+
verbose: true
82+
83+
- name: Upload coverage
84+
# any except canceled or skipped
85+
if: >-
86+
always() &&
87+
(steps.test.outcome == 'success' || steps.test.outcome == 'failure') &&
88+
startsWith(github.repository, 'LizardByte/')
89+
uses: codecov/codecov-action@v5
90+
with:
91+
disable_search: true
92+
fail_ci_if_error: true
93+
files: ./coverage/coverage-final.json
94+
token: ${{ secrets.CODECOV_TOKEN }}
95+
verbose: true
96+
97+
publish-gpr:
98+
if: ${{ needs.setup_release.outputs.publish_release == 'true' }}
99+
needs:
100+
- setup_release
101+
- build
102+
runs-on: ubuntu-latest
103+
permissions:
104+
contents: read
105+
id-token: write # required for provenance
106+
packages: write
107+
strategy:
108+
fail-fast: false
109+
matrix:
110+
include:
111+
- registry-url: "https://npm.pkg.github.com"
112+
extra-args: ""
113+
- registry-url: "https://registry.npmjs.org"
114+
extra-args: "--provenance --access public"
115+
steps:
116+
- name: Checkout
117+
uses: actions/checkout@v4
118+
119+
- name: Setup node
120+
uses: actions/setup-node@v4
121+
with:
122+
node-version: latest
123+
registry-url: ${{ matrix.registry-url }}
124+
scope: '@lizardbyte'
125+
126+
- name: Update package.json
127+
run: |
128+
npm version ${{ needs.setup_release.outputs.release_version }} --no-git-tag-version
129+
130+
- name: Install dependencies
131+
run: npm install
132+
133+
- name: Build
134+
run: npm run build
135+
136+
- name: Set token
137+
id: token
138+
run: |
139+
# if github registry, use GITHUB_TOKEN
140+
if [ "${{ matrix.registry-url }}" == "https://npm.pkg.github.com" ]; then
141+
echo "NODE_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_OUTPUT
142+
else
143+
echo "NODE_AUTH_TOKEN=${{ secrets.NPM_TOKEN }}" >> $GITHUB_OUTPUT
144+
fi
145+
146+
- name: Publish
147+
run: npm publish ${{ matrix.extra-args }}
148+
env:
149+
NODE_AUTH_TOKEN: ${{ steps.token.outputs.NODE_AUTH_TOKEN }}

0 commit comments

Comments
 (0)