Skip to content

Commit 994a6a0

Browse files
committed
[github] improve CI
1 parent 57372ba commit 994a6a0

File tree

3 files changed

+31
-23
lines changed

3 files changed

+31
-23
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ indent_style = space
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11-
[*.{json}]
11+
[*.{json, yml}]
1212
tab_width = 2
1313
indent_size = 2

.github/workflows/build.yml

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

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
# Prevent all permissions from being set, just use the ones we need.
10+
permissions:
11+
contents: read
12+
13+
# Cancel in-progress runs on new commits.
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
Format:
20+
# Prevent running this on forks
21+
if: github.repository_owner == 'zerodytrash'
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v3
25+
- uses: actions/setup-node@v3
26+
with:
27+
node-version: 'lts/*'
28+
cache: 'npm'
29+
- run: npm ci
30+
- run: npm run check-format

0 commit comments

Comments
 (0)