Skip to content

Commit 6ee4083

Browse files
committed
chore: Add github files
1 parent b0cee11 commit 6ee4083

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: loopwerk
2+
buy_me_a_coffee: loopwerk

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
create-release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Create changelog text
17+
id: changelog
18+
uses: loopwerk/tag-changelog@v1
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
exclude_types: other,doc,chore,build
22+
23+
- name: Create release
24+
uses: softprops/action-gh-release@v2
25+
with:
26+
body: ${{ steps.changelog.outputs.changes }}
27+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- "*"
10+
11+
jobs:
12+
test-xcode:
13+
runs-on: macos-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: maxim-lobanov/setup-xcode@v1
18+
with:
19+
xcode-version: latest-stable
20+
- name: Build
21+
run: swift build -v
22+
- name: Run tests
23+
run: swift test -v
24+
25+
test-linux:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- name: Install dependencies
30+
run: sudo apt-get update && sudo apt-get install -y libjavascriptcoregtk-4.1-dev
31+
- name: Build
32+
run: swift build -v
33+
- name: Run tests
34+
run: swift test -v

0 commit comments

Comments
 (0)