Skip to content

Commit a760ae4

Browse files
ci: basic ci
1 parent b93f693 commit a760ae4

File tree

13 files changed

+920
-428
lines changed

13 files changed

+920
-428
lines changed

.eslintignore

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

.eslintrc.js

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

.github/workflows/automerge.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: automerge
2+
3+
on:
4+
pull_request:
5+
types:
6+
- labeled
7+
- unlabeled
8+
- synchronize
9+
- opened
10+
- edited
11+
- ready_for_review
12+
- reopened
13+
- unlocked
14+
pull_request_review:
15+
types:
16+
- submitted
17+
check_suite:
18+
types:
19+
- completed
20+
status: {}
21+
22+
jobs:
23+
automerge:
24+
runs-on: ubuntu-latest
25+
if: >
26+
contains(github.event.pull_request.labels.*.name, 'gate')
27+
environment: github
28+
steps:
29+
- name: Create GitHub App Token
30+
id: app-token
31+
uses: actions/create-github-app-token@v1
32+
with:
33+
app-id: ${{ secrets.APP_ID }}
34+
private-key: ${{ secrets.APP_KEY }}
35+
36+
- id: automerge
37+
name: automerge
38+
uses: pascalgn/[email protected]
39+
env:
40+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
41+
MERGE_LABELS: "gate"
42+
MERGE_METHOD: "squash"

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- gh-*
8+
pull_request: {}
9+
workflow_dispatch: {}
10+
11+
jobs:
12+
13+
lint:
14+
name: lint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Use Node.js 20
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
24+
- name: Install dependencies
25+
run: |
26+
yarn install --frozen-lockfile
27+
28+
- name: Run ESLint
29+
run: |
30+
yarn lint
31+
32+
33+
eco_check:
34+
name: eco/check
35+
if: always()
36+
needs: [lint]
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Decide whether the needed jobs succeeded or failed
40+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
41+
with:
42+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)