Skip to content

[repo-assist] Move CI from Travis/AppVeyor to GitHub Actions #2

[repo-assist] Move CI from Travis/AppVeyor to GitHub Actions

[repo-assist] Move CI from Travis/AppVeyor to GitHub Actions #2

Workflow file for this run

name: CI
on:
push:
branches:
- master
tags-ignore:
- '**'
pull_request:
branches:
- master
jobs:
linux:
name: Linux (.NET)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: net
skip_env: SkipIntegrationTestsNetCore=true
- name: netcore
skip_env: SkipIntegrationTestsNet=true
- name: flaky
skip_env: PAKET_TESTSUITE_FLAKYTESTS=true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Install Mono
run: sudo apt-get update && sudo apt-get install --yes mono-complete
- name: Build and test
env:
PAKET_TESTSUITE_FLAKYTESTS: false
run: |
export ${{ matrix.skip_env }}
./build.sh BuildPackage < /dev/null
continue-on-error: ${{ matrix.name == 'flaky' }}
windows:
name: Windows (.NET)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure git autocrlf
run: git config --global core.autocrlf input
- uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Build
run: .\build.cmd BuildPackage
- name: Upload build artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: bin
path: bin
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: TestResults
path: tests_result/**/*.trx