Skip to content

Commit 8b62e64

Browse files
committed
Add ci
commit-id:88f34b7d
1 parent 92e7508 commit 8b62e64

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed

Diff for: .github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @ksew1 @THenry14

Diff for: .github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
groups:
8+
actions:
9+
patterns:
10+
- "*"

Diff for: .github/workflows/ci.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
merge_group:
9+
10+
jobs:
11+
test:
12+
name: test ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os:
16+
- ubuntu-latest
17+
- macos-latest
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- name: "Fetch latest cairo-coverage version from GitHub releases"
21+
id: version
22+
shell: bash
23+
run: |
24+
latest_version=$(curl -s https://api.github.com/repos/software-mansion/cairo-coverage/releases/latest | jq -r .name)
25+
echo "Latest cairo-coverage version found is $latest_version"
26+
echo "LATEST_VERSION=$latest_version" >> $env:GITHUB_OUTPUT
27+
28+
- name: "Check cairo-coverage latest"
29+
uses: asdf-vm/actions/plugin-test@v3
30+
with:
31+
command: cairo-coverage --version | grep "cairo-coverage ${{ steps.version.outputs.LATEST_VERSION }}"
32+
33+
- name: "Check cairo-coverage v0.2.0"
34+
uses: asdf-vm/actions/plugin-test@v3
35+
with:
36+
skip_install: true
37+
version: 0.2.0
38+
command: cairo-coverage --version | grep "cairo-coverage 0.2.0"
39+
40+
shellcheck:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- run: shellcheck bin/* lib/*
45+
46+
shfmt:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: mfinelli/setup-shfmt@v3
50+
- uses: actions/checkout@v4
51+
- run: shfmt --diff .

Diff for: .shellcheckrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
external-sources=true

0 commit comments

Comments
 (0)