Compare commits

..

3 Commits

Author SHA1 Message Date
Sascha Mann
0fb79b8f6a Improve deprecation warning 2023-03-15 23:05:59 +01:00
Sascha Mann
a29dc8944a Remove linebreaks 2023-03-15 23:04:45 +01:00
Sascha Mann
e4bba91d95 Deprecate @master
Turns out GitHub doesn't forward @master to @main
2023-03-15 22:59:44 +01:00
3 changed files with 9 additions and 7 deletions

View File

@@ -38,15 +38,13 @@ jobs:
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
# with:
# annotate: true
with:
annotate: true
```
You can add this workflow to your repository by placing it in a file called `test.yml` in the folder `.github/workflows/`. [More info here](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions).
Here, setting `annotate: true` causes GitHub "annotations" to appear when reviewing the PR, pointing to failing tests, if any.
This functionality is only enabled on Julia 1.8 (even if `annotate` is set to `true`), since currently it does not work on other Julia versions (see #76).
By default, `annotate` is set to false, but that may change in future releases of this action.
### Prefixing the Julia command

View File

@@ -36,13 +36,17 @@ inputs:
runs:
using: 'composite'
steps:
- name: 'DEPRECATION WARNING: julia-actions/julia-runtest@master will no longer receive updates and will start to error in the future. Please use version tags like julia-actions/julia-runtest@v1 or commit SHAs in your workflows!'
run: |
echo "::warning title=DEPRECATION WARNING::julia-actions/julia-runtest@master will no longer receive updates and will start to error in the future. Please use version tags like julia-actions/julia-runtest@v1 or commit SHAs in your workflows!"
echo "# :warning: DEPRECATION WARNING :warning: julia-actions/julia-runtest@master will no longer receive updates and will start to error in the future. Please use version tags like julia-actions/julia-runtest@v1 or commit SHAs in your workflows!" >> $GITHUB_STEP_SUMMARY
shell: bash
- name: Set and export registry flavor preference
run: echo "JULIA_PKG_SERVER_REGISTRY_PREFERENCE=${JULIA_PKG_SERVER_REGISTRY_PREFERENCE:-eager}" >> ${GITHUB_ENV}
shell: bash
- name: Install dependencies in their own (shared) environment
run: |
# Functionality only currently works on a narrow range of Julia versions... see #76
if v"1.8pre" < VERSION < v"1.9.0-beta3"
if VERSION > v"1.8pre"
using Pkg
Pkg.activate("tests-logger-env"; shared=true)
Pkg.add(Pkg.PackageSpec(name="GitHubActions", version="0.1"))

View File

@@ -4,7 +4,7 @@ kwargs = Kwargs.kwargs(; coverage=ENV["COVERAGE"],
force_latest_compatible_version=ENV["FORCE_LATEST_COMPATIBLE_VERSION"],
julia_args=[string("--check-bounds=", ENV["CHECK_BOUNDS"])])
if parse(Bool, ENV["ANNOTATE"]) && v"1.8pre" < VERSION < v"1.9.0-beta3"
if parse(Bool, ENV["ANNOTATE"]) && VERSION > v"1.8pre"
push!(LOAD_PATH, "@tests-logger-env") # access dependencies
using GitHubActions, Logging
global_logger(GitHubActionsLogger())