Skip to content

Commit 2bce6ac

Browse files
authored
Merge pull request #39 from quinnj/jq-testsetup
Add support and tests for new at-testsetup macro + usage
2 parents 534786e + 4b53f2b commit 2bce6ac

33 files changed

+1850
-34
lines changed

Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ authors = ["David Anthoff <[email protected]>"]
44
version = "0.2.2-DEV"
55

66
[deps]
7+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
8+
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
79
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
810
TestItems = "1c621080-faea-4a02-84b6-bbd5e436b8fe"
9-
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
11+
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
1012

1113
[compat]
12-
julia = "1"
1314
TestItems = "0.1"
15+
julia = "1"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Run the Julia Package Butler
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
schedule:
9+
- cron: '0 */1 * * *'
10+
workflow_dispatch:
11+
12+
jobs:
13+
butler:
14+
name: "Run Package Butler"
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: davidanthoff/julia-pkgbutler@releases/v1
19+
with:
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
ssh-private-key: ${{ secrets.JLPKGBUTLER_TOKEN }}
22+
channel: stable
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Run CI on main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
julia-version: ['1.0', '1.1', '1.2', '1.3', '1.4', '1.5', '1.6', '1.7', '1.8']
16+
julia-arch: [x64, x86]
17+
os: [ubuntu-latest, windows-latest, macOS-latest]
18+
exclude:
19+
- os: macOS-latest
20+
julia-arch: x86
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: julia-actions/setup-julia@v1
25+
with:
26+
version: ${{ matrix.julia-version }}
27+
arch: ${{ matrix.julia-arch }}
28+
- uses: julia-actions/julia-buildpkg@v1
29+
env:
30+
PYTHON: ""
31+
- uses: julia-actions/julia-runtest@v1
32+
env:
33+
PYTHON: ""
34+
- uses: julia-actions/julia-processcoverage@v1
35+
- uses: codecov/codecov-action@v3
36+
with:
37+
files: ./lcov.info
38+
flags: unittests
39+
token: ${{ secrets.CODECOV_TOKEN }}
40+
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Run CI on PR
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
test:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
julia-version: ['1.0', '1.1', '1.2', '1.3', '1.4', '1.5', '1.6', '1.7', '1.8']
13+
julia-arch: [x64, x86]
14+
os: [ubuntu-latest, windows-latest, macOS-latest]
15+
exclude:
16+
- os: macOS-latest
17+
julia-arch: x86
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: julia-actions/setup-julia@v1
22+
with:
23+
version: ${{ matrix.julia-version }}
24+
arch: ${{ matrix.julia-arch }}
25+
- uses: julia-actions/julia-buildpkg@v1
26+
env:
27+
PYTHON: ""
28+
- uses: julia-actions/julia-runtest@v1
29+
env:
30+
PYTHON: ""
31+
- uses: julia-actions/julia-processcoverage@v1
32+
- uses: codecov/codecov-action@v3
33+
with:
34+
files: ./lcov.info
35+
flags: unittests
36+
token: ${{ secrets.CODECOV_TOKEN }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Code Formatting
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
workflow_dispatch:
9+
10+
jobs:
11+
format:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: julia-actions/julia-codeformat@releases/v1
16+
- name: Create Pull Request
17+
uses: peter-evans/create-pull-request@v3
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
commit-message: Format files using DocumentFormat
21+
title: '[AUTO] Format files using DocumentFormat'
22+
body: '[DocumentFormat.jl](https://github.com/julia-vscode/DocumentFormat.jl) would suggest these formatting changes'
23+
labels: no changelog
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Run CompatHelper
2+
3+
on:
4+
schedule:
5+
- cron: '00 * * * *'
6+
issues:
7+
types: [opened, reopened]
8+
workflow_dispatch:
9+
10+
jobs:
11+
CompatHelper:
12+
name: "Run CompatHelper.jl"
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Pkg.add("CompatHelper")
16+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
17+
- name: CompatHelper.main()
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
run: julia -e 'using CompatHelper; CompatHelper.main()'
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: TagBot
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
8+
jobs:
9+
TagBot:
10+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: JuliaRegistries/TagBot@v1
14+
with:
15+
token: ${{ secrets.GITHUB_TOKEN }}
16+
ssh: ${{ secrets.JLPKGBUTLER_TOKEN }}
17+
branches: true
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.jl.cov
2+
*.jl.*.cov
3+
*.jl.mem
4+
cache/docs.cache
5+
.vscode
6+
Manifest.toml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
template = "bach"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
By contributing code to LanguageServer.jl, you are agreeing to release that code under the [MIT License](https://github.com/julia-vscode/JuliaWorkspaces.jl/blob/main/LICENSE).

0 commit comments

Comments
 (0)