Add missing checkout #1963
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration Tests | |
on: | |
push: | |
branches: | |
- main | |
- windows | |
pull_request: | |
schedule: | |
# Every night at 03:00 | |
- cron: '0 3 * * *' | |
jobs: | |
integration_tests_linux_local: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# Always keep support to at least 2 stable versions | |
version: [ "2.19", "3.0", "latest" ] | |
container: | |
image: dart:${{ matrix.version }} | |
steps: | |
- run: echo "${HOME}/.sidekick/bin" >> $GITHUB_PATH | |
- run: | | |
apt-get update | |
apt-get install unzip | |
- uses: actions/checkout@v1 | |
- name: Dart version | |
run: dart --version | |
- name: Install dependencies | |
run: cd sidekick && dart pub get --no-precompile | |
- name: Run tests | |
run: cd sidekick && dart test test/test_runner.dart | |
env: | |
SIDEKICK_PUB_DEPS: "false" | |
SIDEKICK_ANALYZE: "${{ matrix.version == '2.18' }}" | |
integration_tests_linux_pub: | |
runs-on: ubuntu-latest | |
if: ${{ !github.event.pull_request }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# Always keep support to at least 2 stable versions | |
version: [ "2.19", "3.0", "latest" ] | |
container: | |
image: dart:${{ matrix.version }} | |
steps: | |
- run: echo "${HOME}/.sidekick/bin" >> $GITHUB_PATH | |
- run: | | |
apt-get update | |
apt-get install unzip | |
- uses: actions/checkout@v1 | |
- name: Dart version | |
run: dart --version | |
- name: Install dependencies | |
run: cd sidekick && dart pub get --no-precompile | |
- name: Run tests | |
run: cd sidekick && dart test test/test_runner.dart | |
env: | |
SIDEKICK_PUB_DEPS: "true" | |
SIDEKICK_ANALYZE: "${{ matrix.version == '3.0' }}" | |
- name: Run latest sidekick from pub | |
run: | | |
set -o errexit | |
dart pub global activate sidekick | |
export PATH="$PATH":"$HOME/.pub-cache/bin" | |
mkdir tmp | |
cd tmp | |
sidekick init --cliName dashi --projectRoot . --cliPackageDirectory . | |
./dashi -h | |
./dashi sidekick -h | |
./dashi sidekick plugins install sidekick_vault | |
./dashi vault -h | |
integration_tests_windows_local: | |
runs-on: windows-2022 | |
steps: | |
- name: Set up Chocolatey | |
run: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
- name: Install Dart SDK | |
run: choco install dart-sdk --version 3.0 | |
- name: Add Dart SDK to PATH | |
shell: powershell | |
run: | | |
$dartSdkPath = "C:\\tools\\dart-sdk\\bin" | |
echo $dartSdkPath | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- name: Dart version | |
run: dart --version | |
- uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: cd sidekick && dart pub get --no-precompile | |
- name: Run tests | |
run: cd sidekick && dart test test/test_runner.dart | |
env: | |
SIDEKICK_PUB_DEPS: "false" | |
SIDEKICK_ANALYZE: "false" |