Skip to content

Commit f69d84f

Browse files
Merge pull request #1 from roc-lang/implement-release-workflow
Add reusable Roc release workflow
2 parents 2bedd04 + 8f09200 commit f69d84f

22 files changed

Lines changed: 3247 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
name: Test release package tooling
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
19+
20+
- name: Run Python tests
21+
run: python3 -m unittest discover -s tests
22+
23+
- name: Shellcheck release scripts and composite actions
24+
run: |
25+
set -euo pipefail
26+
python3 -c 'import yaml' 2>/dev/null || python3 -m pip install --quiet pyyaml
27+
shellcheck --shell=bash --severity=info scripts/release/run-command.sh
28+
python3 scripts/lint_action_shell.py
29+
30+
- name: Install actionlint
31+
shell: bash
32+
run: |
33+
set -euo pipefail
34+
version=1.7.12
35+
archive="actionlint_${version}_linux_amd64.tar.gz"
36+
checksums="actionlint_${version}_checksums.txt"
37+
base_url="https://github.com/rhysd/actionlint/releases/download/v${version}"
38+
curl -fsSLO "$base_url/$archive"
39+
curl -fsSLO "$base_url/$checksums"
40+
grep " $archive\$" "$checksums" > actionlint.sha256
41+
sha256sum -c actionlint.sha256
42+
tar -xzf "$archive" actionlint
43+
echo "$PWD" >> "$GITHUB_PATH"
44+
45+
- name: Lint workflows
46+
run: |
47+
actionlint
48+
actionlint tests/fixtures/composite-actions.yml

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__pycache__/
2+
*.py[cod]
3+
.release/
4+
actionlint

LICENSE

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Copyright © 2026 Luke Boswell and subsequent authors.
2+
3+
The Universal Permissive License (UPL), Version 1.0
4+
5+
Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this software, associated documentation and/or data (collectively the "Software"), free of charge and under any and all copyright rights in the Software, and any and all patent rights owned or freely licensable by each licensor hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, or (ii) the Larger Works (as defined below), to deal in both
6+
7+
(a) the Software, and
8+
9+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if one is included with the Software (each a “Larger Work” to which the Software is contributed by such licensors),
10+
11+
without restriction, including without limitation the rights to copy, create derivative works of, display, perform, and distribute the Software and make, use, sell, offer for sale, import, export, have made, and have sold the Software and the Larger Work(s), and to sublicense the foregoing rights on either these or other terms.
12+
13+
This license is subject to the following condition:
14+
15+
The above copyright notice and either this complete permission notice or at a minimum a reference to the UPL must be included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)