-
Notifications
You must be signed in to change notification settings - Fork 17
56 lines (51 loc) · 1.5 KB
/
vendor-deps.jl.yml
File metadata and controls
56 lines (51 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: vendor-deps.jl
on:
push:
branches:
- master
paths:
- "src/**"
- "test/**"
- "LSP/**"
- "scripts/vendor-deps.jl"
- "Project.toml"
- ".github/workflows/vendor-deps.jl.yml"
pull_request:
branches-ignore:
- release
paths:
- "src/**"
- "test/**"
- "LSP/**"
- "scripts/vendor-deps.jl"
- "Project.toml"
- ".github/workflows/vendor-deps.jl.yml"
jobs:
test:
name: Test JETLS.jl with vendored environment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: "1.12" # most stable version
arch: x64
- uses: julia-actions/cache@v2
- name: Fetch branch for vendor-deps.jl
run: |
git fetch origin ${{ github.head_ref || github.ref_name }}
- name: Run vendor-deps.jl
run: |
julia --startup-file=no --project=. scripts/vendor-deps.jl --source-branch=origin/${{ github.head_ref || github.ref_name }} --local
- name: Show vendored packages
run: |
echo "=== Vendored packages ==="
ls -la vendor/
echo ""
echo "=== Project.toml deps ==="
grep -A 100 '^\[deps\]' Project.toml | head -50
echo ""
echo "=== Project.toml sources ==="
grep -A 100 '^\[sources' Project.toml | head -50
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest