File tree 10 files changed +458
-587
lines changed
10 files changed +458
-587
lines changed Original file line number Diff line number Diff line change 2
2
commitizen :
3
3
name : cz_conventional_commits
4
4
tag_format : $version
5
- update_changelog_on_bump : true
6
5
version : 2.6.0
7
6
version_files :
8
7
- Cargo.toml
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
pull_request :
8
- branches :
9
- - main
10
8
11
9
env :
12
10
SCCACHE_GHA_ENABLED : ' true'
18
16
runs-on : ubuntu-latest
19
17
steps :
20
18
- name : Checkout
21
- uses : actions/checkout@v3
19
+ uses : actions/checkout@v4
22
20
23
21
- name : Run sccache-cache
24
22
uses :
mozilla-actions/[email protected]
@@ -43,11 +41,15 @@ jobs:
43
41
runs-on : ubuntu-latest
44
42
steps :
45
43
- name : Checkout
46
- uses : actions/checkout@v3
44
+ uses : actions/checkout@v4
47
45
48
- - uses : ./.github/actions/setup-pnpm
46
+ - name : Setup PNPM
47
+ uses : dfinity/ci-tools/actions/setup-pnpm@main
49
48
50
- - uses : ./.github/actions/setup-dfx
49
+ - name : Setup DFX
50
+ uses : dfinity/setup-dfx@main
51
+ with :
52
+ dfx-version : ' auto'
51
53
52
54
- name : Run sccache-cache
53
55
uses :
mozilla-actions/[email protected]
57
59
- name : Cargo metadata
58
60
run : cargo metadata --format-version 1
59
61
60
- - name : Install wasm-pack
62
+ - name : Setup wasm-pack
61
63
run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
62
64
63
65
- name : Generate canister declarations
Original file line number Diff line number Diff line change @@ -2,28 +2,13 @@ name: Check commit messages
2
2
3
3
on :
4
4
pull_request :
5
- branches :
6
- - main
7
5
8
6
jobs :
9
7
check_commit_messages :
10
8
name : Check Commit Messages
11
- runs-on : ubuntu-latest
12
- steps :
13
- - name : Checkout
14
- uses : actions/checkout@v3
15
- with :
16
- fetch-depth : 0
9
+ uses : dfinity/ci-tools/.github/workflows/check-commit-messages.yaml@nathan/fix-workflow-location
10
+ with :
11
+ starting_commit : ' ac8f90b7c45e13e240d6c01a43d191b99f1aec4a'
17
12
18
- - name : Install Python
19
- uses : actions/setup-python@v4
20
- with :
21
- python-version : ' 3.10'
22
-
23
- - name : Install Commitzen
24
- run : |
25
- python -m pip install --upgrade pip
26
- pip install -U Commitizen
27
-
28
- - name : Check Commit Messages
29
- run : cz check --rev-range ac8f90b7c45e13e240d6c01a43d191b99f1aec4a..HEAD
13
+ check_pr_title :
14
+ uses : dfinity/ci-tools/.github/workflows/check-pr-title.yaml@nathan/fix-workflow-location
Original file line number Diff line number Diff line change @@ -12,15 +12,17 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- name : Checkout
15
- uses : actions/checkout@v3
15
+ uses : actions/checkout@v4
16
16
with :
17
17
fetch-depth : 0
18
18
19
- - uses : ./.github/actions/setup-pnpm
19
+ - name : Setup PNPM
20
+ uses : dfinity/ci-tools/actions/setup-pnpm@main
20
21
21
- - uses : ./.github/actions/setup-dfx
22
+ - name : Setup DFX
23
+ uses : dfinity/setup-dfx@main
22
24
23
- - name : Install wasm-pack
25
+ - name : Setup wasm-pack
24
26
run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
25
27
26
28
- name : Run sccache-cache
Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
pull_request :
8
- branches :
9
- - main
10
8
11
9
env :
12
10
SCCACHE_GHA_ENABLED : ' true'
18
16
runs-on : ubuntu-latest
19
17
steps :
20
18
- name : Checkout
21
- uses : actions/checkout@v3
19
+ uses : actions/checkout@v4
22
20
23
- - uses : ./.github/actions/setup-pnpm
21
+ - name : Setup PNPM
22
+ uses : dfinity/ci-tools/actions/setup-pnpm@main
24
23
25
24
- name : Run sccache-cache
26
25
uses :
mozilla-actions/[email protected]
31
30
path : tmp/
32
31
key : ${{ runner.os }}-tmp
33
32
34
- - name : Install wasm-pack
33
+ - name : Setup wasm-pack
35
34
run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
36
35
37
36
- name : e2e tests
Original file line number Diff line number Diff line change @@ -15,19 +15,24 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- name : Checkout
18
- uses : actions/checkout@v3
18
+ uses : actions/checkout@v4
19
19
with :
20
20
fetch-depth : 0
21
21
22
- - uses : ./.github/actions/setup-pnpm
22
+ - name : Setup PNPM
23
+ uses : dfinity/ci-tools/actions/setup-pnpm@main
23
24
24
- - uses : ./.github/actions/setup-dfx
25
+ - name : Setup DFX
26
+ uses : dfinity/setup-dfx@main
25
27
26
28
- name : Run sccache-cache
27
29
uses :
mozilla-actions/[email protected]
28
30
31
+ - name : Setup Python
32
+ uses : dfinity/ci-tools/actions/setup-python@main
33
+
29
34
- name : Setup Commitizen
30
- run : pip install commitizen==2.42.1
35
+ uses : dfinity/ci-tools/actions/setup- commitizen@main
31
36
32
37
- name : Install wasm-pack
33
38
run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
update_changelog :
10
- name : Update Changelog
11
- runs-on : ubuntu-latest
12
- steps :
13
- - name : Checkout
14
- uses : actions/checkout@v3
15
- with :
16
- fetch-depth : 0
17
-
18
- - name : Install Python
19
- uses : actions/setup-python@v4
20
- with :
21
- python-version : ' 3.10'
22
-
23
- - name : Install Commitzen
24
- run : |
25
- python -m pip install --upgrade pip
26
- pip install -U Commitizen
27
-
28
- - name : Check Commit Messages
29
- run : cz check --rev-range c8ecbc19b8c4a482e55907d37554d66f2f2f9a8f..HEAD
30
-
31
- - name : Update Changelog
32
- run : cz changelog
33
-
34
- - name : Create Pull Request
35
- uses : peter-evans/create-pull-request@v4
36
- with :
37
- title : ' Update changelog'
38
- commit-message : ' chore: update changelog'
39
- branch : ' chore/update-changelog'
40
- branch-suffix : ' short-commit-hash'
41
- add-paths : |
42
- CHANGELOG.md
10
+ uses : dfinity/ci-tools/.github/workflows/generate-changelog.yaml@nathan/fix-workflow-location
11
+ with :
12
+ auto_merge : true
13
+ secrets :
14
+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments