Skip to content

Commit

Permalink
CI: Update actions version
Browse files Browse the repository at this point in the history
Use checkout v3, and unpin the setup-dlang version to benefit from updates.
We also need to use fetch-depth > 1 when using coverage as the Codecov
script requires it.
  • Loading branch information
Geod24 committed Aug 24, 2022
1 parent a493e11 commit acba077
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
- dmd-beta
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.dc }}
- name: 'Test'
Expand All @@ -29,8 +31,8 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
- uses: actions/checkout@v3
- uses: dlang-community/setup-dlang@v1
with:
compiler: dmd-latest
- name: 'Build Examples'
Expand All @@ -47,8 +49,8 @@ jobs:
ninja:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
- uses: actions/checkout@v3
- uses: dlang-community/setup-dlang@v1
with:
compiler: dmd-latest
- name: 'Install dependencies'
Expand All @@ -64,8 +66,8 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
- uses: actions/checkout@v3
- uses: dlang-community/setup-dlang@v1
with:
compiler: dmd-latest
- name: 'Run YAML test suite'
Expand Down

0 comments on commit acba077

Please sign in to comment.