Skip to content

Commit 073d2c0

Browse files
committed
chore: allow ci on other branch
1 parent dd0707f commit 073d2c0

3 files changed

Lines changed: 181 additions & 9 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,33 @@ name: "CI"
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches: [ "*" ]
66
pull_request:
7-
branches: [ "master" ]
7+
branches: [ "*" ]
88
workflow_dispatch:
99

1010
jobs:
1111
build:
12-
1312
runs-on: ubuntu-latest
1413

1514
steps:
16-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v6
1716

1817
- name: Setup Node.js
19-
uses: actions/setup-node@v3
18+
uses: actions/setup-node@v6
2019
with:
2120
node-version: 'lts/*'
2221

22+
- name: Cache Node.js modules
23+
uses: actions/cache@v3
24+
with:
25+
path: ~/.npm
26+
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
27+
restore-keys: |
28+
${{ runner.os }}-node-
29+
2330
- name: Install dependencies
24-
run: npm install
31+
run: npm ci
2532

26-
- name: run tests
33+
- name: Run tests
2734
run: npm test
28-

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ debug-stick*.mcpack
33
debug-stick*.zip
44

55
node_modules
6-
package-lock.json
76

87
pack/scripts/*

package-lock.json

Lines changed: 167 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)