File tree Expand file tree Collapse file tree 5 files changed +76
-46
lines changed Expand file tree Collapse file tree 5 files changed +76
-46
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+ workflow_dispatch :
8
+ workflow_call :
9
+
10
+ jobs :
11
+ test :
12
+ runs-on : ${{ matrix.os }}
13
+ strategy :
14
+ matrix :
15
+ os : [macos-13, macos-12, macos-11]
16
+
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - name : Install dependencies
20
+ run : |
21
+ make venv
22
+ - name : Lint
23
+ run : |
24
+ make lint
25
+ - name : Test
26
+ run : |
27
+ make test
Original file line number Diff line number Diff line change 1
- name : Plugin development
1
+ name : Development
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ branches-ignore :
6
+ - main
4
7
5
8
jobs :
6
- build :
7
-
8
- runs-on : macos-12
9
+ test :
10
+ runs-on : macos-latest
9
11
steps :
10
12
- uses : actions/checkout@v4
11
- - name : Set up Python ${{ matrix.python-version }}
12
- uses : actions/setup-python@v4
13
- with :
14
- python-version : ' 3.8'
15
13
- name : Install dependencies
16
14
run : |
17
15
make venv
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ concurrency : build-${{ github.ref }}
9
+
10
+ jobs :
11
+ test :
12
+ name : Lint and test
13
+ uses : gmasse/xbar-plugin-yf-stock-ticker/.github/workflows/ci.yml@main
14
+
15
+ build :
16
+ runs-on : macos-latest
17
+ permissions :
18
+ contents : write
19
+
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ - name : Get version
23
+ id : get-version
24
+ run : echo "::set-output name=version::$(./yf_stock_ticker/yf_stock_ticker.sh --version)"
25
+ - name : Build
26
+ run : |
27
+ make build
28
+ - name : Upload artifact
29
+ uses : actions/upload-artifact@v3
30
+ with :
31
+ path : yf_stock_ticker_${{ steps.get-version.outputs.version }}.tgz
32
+ - name : Create release
33
+ uses : ncipollo/release-action@v1
34
+ with :
35
+ tag : ${{ steps.get-version.outputs.version }}
36
+ commit : ${{ github.sha }}
37
+ skipIfReleaseExists : true
38
+ draft : true
39
+ prerelease : false
40
+ generateReleaseNotes : true
41
+ makeLatest : false
42
+ artifacts : yf_stock_ticker_${{ steps.get-version.outputs.version }}.tgz
You can’t perform that action at this time.
0 commit comments