Skip to content

Separate test jobs CI WflowServer for Windows and Linux #51

Separate test jobs CI WflowServer for Windows and Linux

Separate test jobs CI WflowServer for Windows and Linux #51

Workflow file for this run

name: Wflow Server CI
on:
pull_request:
push:
branches:
- master
tags: '*'
jobs:
test:
name: WflowServer Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.6'
- '1'
os:
- ubuntu-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v4
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- name: Install Julia dependencies
shell: julia --project=server {0}
run: |
using Pkg;
# dev install Wflow
pkg"dev ."
- name: Run the Wflow Server tests (Linux)
continue-on-error: true
run: >
julia --color=yes --project=server -e 'using Pkg; Pkg.test("WflowServer", coverage=true)'
&& echo "TESTS_PASS=true" >> $GITHUB_ENV
shell: bash
if: runner.os == 'Linux'
- name: Run the Wflow Server tests (Windows)
continue-on-error: true
run: >
julia --color=yes --project=server -e "using Pkg; Pkg.test(\""WflowServer\"", coverage=true)"
&& echo "TESTS_PASS=true" | Out-File -FilePath $env:GITHUB_ENV -Append
if: runner.os == 'Windows'
- name: Exit if some tests did not pass
if: ${{ env.TESTS_PASS != 'true' }}
run: echo "response is: $env.TESTS_PASS"

Check failure on line 60 in .github/workflows/CIWflowServer.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/CIWflowServer.yml

Invalid workflow file

You have an error in your yaml syntax on line 60
- uses: julia-actions/julia-processcoverage@v1
with:
directories: server/src
- uses: codecov/codecov-action@v4
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}