Skip to content

Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows #420

Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows #420

Workflow file for this run

name: Build
on:
push:
branches-ignore:
- 'gh-pages'
pull_request:
branches-ignore:
- 'gh-pages'
jobs:
build:
runs-on: ${{ matrix.os }}
env:
NASA_API_KEY: ${{ secrets.NASA_API_KEY }}
strategy:
matrix:
dotnet: ['3.0.101', '3.1.100']
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Build with dotnet ${{ matrix.dotnet }}
run: dotnet build src/Apod.sln --configuration Release
- name: Install coverlet
run: dotnet add src/ApodTests/ApodTests.csproj package coverlet.collector --version 1.2.25-g074a201a91 --source https://www.myget.org/F/coverlet-dev/api/v3/index.json
- name: Run tests
run: dotnet test src/ApodTests/ApodTests.csproj --collect:"XPlat Code Coverage" --settings ./src/ApodTests/.runsettings
- name: Move test coverage results UNIX
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: mv src/ApodTests/coverage/**/*.info .
- name: Move test coverage results WINDOWS
if: matrix.os == 'windows-latest'
run: move src\ApodTests\coverage\**\*.info .
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v1.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.info