Skip to content

Commit dc580ed

Browse files
committed
Update workflows (#1)
* Update ci.yml * Disable codeql.yml because of private repo status * Update release.yml to set prerelease status if tag starts with v0 * Disable dependency-review.yml because of private repo status
1 parent 9474ea3 commit dc580ed

File tree

5 files changed

+132
-26
lines changed

5 files changed

+132
-26
lines changed
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
name: Bug Report
2+
description: Create a report to help us improve
3+
title: '[BUG] '
4+
labels: ['bug', 'triage']
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
11+
- type: textarea
12+
id: bug-description
13+
attributes:
14+
label: Bug Description
15+
description: A clear and concise description of what the bug is.
16+
placeholder: Describe the bug...
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
id: reproduction-steps
22+
attributes:
23+
label: Steps to Reproduce
24+
description: Steps to reproduce the behavior
25+
placeholder: |
26+
1. Run command '...'
27+
2. Parse file '...'
28+
3. See error
29+
value: |
30+
1.
31+
2.
32+
3.
33+
validations:
34+
required: true
35+
36+
- type: textarea
37+
id: expected-behavior
38+
attributes:
39+
label: Expected Behavior
40+
description: A clear and concise description of what you expected to happen.
41+
placeholder: What should have happened?
42+
validations:
43+
required: true
44+
45+
- type: textarea
46+
id: actual-behavior
47+
attributes:
48+
label: Actual Behavior
49+
description: A clear and concise description of what actually happened.
50+
placeholder: What actually happened?
51+
validations:
52+
required: true
53+
54+
- type: textarea
55+
id: sample-data
56+
attributes:
57+
label: Sample Data
58+
description: If applicable, provide sample Articulate Rise JSON data or URLs that reproduce the issue.
59+
placeholder: Paste sample data or URLs here...
60+
61+
- type: dropdown
62+
id: os
63+
attributes:
64+
label: Operating System
65+
description: What operating system are you using?
66+
options:
67+
- Windows 11
68+
- Windows 10
69+
- macOS (Intel)
70+
- macOS (Apple Silicon)
71+
- Ubuntu
72+
- Other Linux
73+
- Other
74+
validations:
75+
required: true
76+
77+
- type: input
78+
id: go-version
79+
attributes:
80+
label: Go Version
81+
description: What version of Go are you using?
82+
placeholder: e.g. 1.21.5
83+
validations:
84+
required: true
85+
86+
- type: input
87+
id: version
88+
attributes:
89+
label: Parser Version
90+
description: What version or commit of the parser are you using?
91+
placeholder: e.g. v1.0.0 or commit hash
92+
93+
- type: textarea
94+
id: error-output
95+
attributes:
96+
label: Error Output
97+
description: Paste any error messages or stack traces here
98+
render: shell
99+
100+
- type: textarea
101+
id: additional-context
102+
attributes:
103+
label: Additional Context
104+
description: |
105+
Add any other context about the problem here, such as:
106+
- Input file size
107+
- Output format attempted
108+
- Any workarounds you've found

.github/workflows/ci.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,20 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
go-version: [1.21.x, 1.22.x, 1.23.x]
14+
go: [1.21.x, 1.22.x, 1.23.x, 1.24.x]
1515

1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: Set up Go
19+
- name: Set up Go ${{ matrix.go }}
2020
uses: actions/setup-go@v5
2121
with:
22-
go-version: ${{ matrix.go-version }}
23-
24-
- name: Cache Go modules
25-
uses: actions/cache@v4
26-
with:
27-
path: ~/go/pkg/mod
28-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
29-
restore-keys: |
30-
${{ runner.os }}-go-
22+
go-version: ${{ matrix.go }}
23+
check-latest: true
24+
cache-dependency-path: "**/*.sum"
3125

3226
- name: Download dependencies
33-
run: go mod download
27+
run: go mod download && echo "Download successful" || go mod tidy && echo "Tidy successful" || return 1
3428

3529
- name: Verify dependencies
3630
run: go mod verify
@@ -53,10 +47,13 @@ jobs:
5347
fi
5448
5549
- name: Upload coverage reports to Codecov
56-
uses: codecov/codecov-action@v4
50+
uses: codecov/codecov-action@v5
51+
with:
52+
token: ${{ secrets.CODECOV_TOKEN }}
53+
slug: kjanat/articulate-parser
54+
55+
- name: Upload test results to Codecov
56+
if: ${{ !cancelled() }}
57+
uses: codecov/test-results-action@v1
5758
with:
58-
file: ./coverage.out
59-
flags: unittests
60-
name: codecov-umbrella
61-
env:
62-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
59+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/codeql.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: CodeQL
22

33
on:
4-
push:
5-
branches: [master, develop]
6-
pull_request:
7-
branches: [master]
8-
schedule:
9-
- cron: '30 1 * * 0'
4+
workflow_call:
5+
# push:
6+
# branches: [master, develop]
7+
# pull_request:
8+
# branches: [master]
9+
# schedule:
10+
# - cron: '30 1 * * 0'
1011

1112
jobs:
1213
analyze:

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Dependency Review
22

3-
on: [pull_request]
3+
on: [workflow_call] # [pull_request]
44

55
permissions:
66
contents: read

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242
articulate-parser-darwin-arm64
4343
generate_release_notes: true
4444
draft: false
45-
prerelease: false
45+
prerelease: ${{ startsWith(github.ref, 'refs/tags/v0.') }}
4646
env:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)