Skip to content

Commit b872c28

Browse files
authored
Update GitHub actions to work again (#7)
* Update GitHub actions to the same as artemis * Remove dartanalyzer-annotations-action * Bump version, use correct dart test method, add analyze * Update push action as well
1 parent 892166e commit b872c28

File tree

4 files changed

+81
-14
lines changed

4 files changed

+81
-14
lines changed

.github/workflows/pull_request.yaml

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,47 @@ jobs:
66
check-version-and-changelog:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@master
9+
- uses: actions/checkout@v2
1010
- uses: comigor/actions/check-version-and-changelog@master
1111
with:
12-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
13-
base_ref: "${{ github.base_ref }}"
12+
repo_token: ${{ github.token }}
13+
base_ref: ${{ github.base_ref }}
14+
lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: dart-lang/[email protected]
19+
with:
20+
sdk: stable
21+
- id: install
22+
name: Install dependencies
23+
run: dart pub get
24+
- name: Check formatting
25+
if: always() && steps.install.outcome == 'success'
26+
run: dart format --set-exit-if-changed .
1427
test:
1528
runs-on: ubuntu-latest
1629
steps:
17-
- uses: actions/checkout@master
18-
- uses: comigor/actions/dart-test@master
30+
- uses: actions/checkout@v2
31+
- uses: dart-lang/[email protected]
32+
with:
33+
sdk: stable
34+
- id: install
35+
name: Install dependencies
36+
run: dart pub get
37+
- name: Test
38+
if: always() && steps.install.outcome == 'success'
39+
run: dart test
40+
analyze:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: dart-lang/[email protected]
1945
with:
20-
exclude_regex: "example"
46+
sdk: stable
47+
- id: install
48+
name: Install dependencies
49+
run: dart pub get
50+
- name: Analyze
51+
if: always() && steps.install.outcome == 'success'
52+
run: dart analyze

.github/workflows/push.yaml

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,50 @@ on:
77
name: CI
88

99
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: dart-lang/[email protected]
15+
with:
16+
sdk: stable
17+
- id: install
18+
name: Install dependencies
19+
run: dart pub get
20+
- name: Check formatting
21+
if: always() && steps.install.outcome == 'success'
22+
run: dart format --set-exit-if-changed .
1023
test:
1124
runs-on: ubuntu-latest
12-
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta'
1325
steps:
14-
- name: Clone repository
15-
uses: actions/checkout@master
16-
- name: Run tests
17-
uses: comigor/actions/dart-test@master
26+
- uses: actions/checkout@v2
27+
- uses: dart-lang/[email protected]
28+
with:
29+
sdk: stable
30+
- id: install
31+
name: Install dependencies
32+
run: dart pub get
33+
- name: Test
34+
if: always() && steps.install.outcome == 'success'
35+
run: dart test
36+
analyze:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: dart-lang/[email protected]
1841
with:
19-
exclude_regex: "example"
42+
sdk: stable
43+
- id: install
44+
name: Install dependencies
45+
run: dart pub get
46+
- name: Analyze
47+
if: always() && steps.install.outcome == 'success'
48+
run: dart analyze
2049
create-tag-and-release:
21-
needs: test
50+
needs:
51+
- lint
52+
- test
53+
- analyze
2254
runs-on: ubuntu-latest
2355
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta'
2456
steps:

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## 0.3.1
4+
- Fix pipeline.
5+
36
## 0.3.0
47
- Make some results fields non-nullable, 💅 to analysis_options.
58

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: d20
2-
version: 0.3.0
2+
version: 0.3.1
33
description: >
44
D20 is a Dart library for RPG dice rolling. Supports standard notation (like "2d12", "d6+5" and "2d20-L").
55
homepage: https://github.com/comigor/d20

0 commit comments

Comments
 (0)