Skip to content

Commit a89cd35

Browse files
committed
[CI] Update GitHub Actions setup
1 parent dbc79ae commit a89cd35

File tree

3 files changed

+41
-16
lines changed

3 files changed

+41
-16
lines changed

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # Location of package manifests
6+
schedule:
7+
interval: "weekly"

.github/workflows/TagBot.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
11
name: TagBot
2+
23
on:
3-
issue_comment:
4+
issue_comment:
45
types:
56
- created
67
workflow_dispatch:
8+
inputs:
9+
lookback:
10+
default: "3"
11+
12+
permissions:
13+
actions: read
14+
checks: read
15+
contents: write
16+
deployments: read
17+
issues: read
18+
discussions: read
19+
packages: read
20+
pages: read
21+
pull-requests: read
22+
repository-projects: read
23+
security-events: read
24+
statuses: read
25+
726
jobs:
827
TagBot:
928
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'

.github/workflows/ci.yml

+14-15
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
name: CI
1+
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches: "master"
5+
pull_request:
6+
7+
concurrency:
8+
# Skip intermediate builds: always.
9+
# Cancel intermediate builds: always.
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
513
jobs:
614
test:
715
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -21,21 +29,12 @@ jobs:
2129
arch:
2230
- x64
2331
steps:
24-
- uses: actions/checkout@v2
25-
- uses: julia-actions/setup-julia@v1
32+
- uses: actions/checkout@v4
33+
- uses: julia-actions/setup-julia@v2
2634
with:
2735
version: ${{ matrix.version }}
2836
arch: ${{ matrix.arch }}
29-
- uses: actions/cache@v1
30-
env:
31-
cache-name: cache-artifacts
32-
with:
33-
path: ~/.julia/artifacts
34-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
35-
restore-keys: |
36-
${{ runner.os }}-test-${{ env.cache-name }}-
37-
${{ runner.os }}-test-
38-
${{ runner.os }}-
37+
- uses: julia-actions/cache@v2
3938
- uses: julia-actions/julia-buildpkg@v1
4039
- uses: julia-actions/julia-runtest@v1
4140
with:

0 commit comments

Comments
 (0)