Skip to content

Commit 1f50ff1

Browse files
committed
Remove workflow and old Travis crud.
1 parent 78f1763 commit 1f50ff1

File tree

11 files changed

+50
-214
lines changed

11 files changed

+50
-214
lines changed

.github/workflows/_npm-task.yml

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

.github/workflows/_post-comment.yml

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

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: merge
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
concurrency: deploy
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- run: git clone --depth=1 "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" .
18+
- run: npm ci
19+
- run: npm run build
20+
- uses: MithrilJS/infra/deploy@main
21+
with:
22+
type: gh-pages
23+
token: ${{ secrets.DEPLOY_TOKEN }}
24+
root_dir: ${{ github.workspace }}/dist

.github/workflows/issue-create.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
1-
name: Ping triage on issue create
1+
name: Notify triage on issue create
22
on:
33
issues:
44
types: [opened]
5+
pull_request:
6+
types: [opened]
57
permissions:
68
issues: write
79
repository-projects: write
810
jobs:
9-
add_triage:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- run: gh issue edit "$ISSUE_URL" --add-project 'Triage/bugs'
13-
env:
14-
ISSUE_URL: ${{ github.event.issue.url }}
15-
GITHUB_TOKEN: ${{ github.token }}
16-
17-
notify:
18-
uses: ./.github/workflows/_post-comment.yml
19-
with:
20-
url: ${{ github.event.issue.url }}
21-
message: '@MithrilJS/triage Please take a look.'
11+
reject:
12+
uses: MithrilJS/infra/.github/workflows/notify-triage.yml@main

.github/workflows/merge.yml

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

.github/workflows/push-gh-pages.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Deny pushing to `gh-pages`
2+
on:
3+
pull_request:
4+
types: [opened]
5+
branches: [gh-pages]
6+
permissions:
7+
issues: write
8+
jobs:
9+
reject:
10+
uses: MithrilJS/infra/.github/workflows/reject-pr.yml@main

.github/workflows/push-master.yml

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

.github/workflows/rollback.yml

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

.github/workflows/test-next-push.yml

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

.github/workflows/test.yml

Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,23 @@ name: test
22

33
on:
44
pull_request:
5-
branches: [ next ]
5+
branches: [main]
6+
push:
7+
branches: [main]
68
workflow_dispatch:
79
workflow_call:
810

911
permissions:
10-
actions: write
1112
contents: read
1213

1314
# This uses actions/checkout instead of `git clone` directly since it's way
1415
# easier than parsing everything out.
1516

1617
jobs:
17-
lint-docs:
18-
uses: ./.github/workflows/_npm-task.yml
19-
with:
20-
task: lint:docs
21-
continue-on-error: true
22-
23-
lint-js:
24-
uses: ./.github/workflows/_npm-task.yml
25-
with:
26-
task: lint:js
27-
28-
build-js:
29-
needs: lint-js
30-
uses: ./.github/workflows/_npm-task.yml
31-
with:
32-
task: build
33-
34-
test-js:
35-
needs: build-js
36-
strategy:
37-
matrix:
38-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
39-
node-version:
40-
- 16
41-
- 18
42-
- 20
43-
- 22
44-
uses: ./.github/workflows/_npm-task.yml
45-
with:
46-
node-version: ${{ matrix.node-version }}
47-
task: test:js
18+
test:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- run: git clone --depth=1 "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" .
22+
- run: npm ci
23+
- run: npm run lint
24+
- run: npm run build

0 commit comments

Comments
 (0)