chore(deps-dev): bump houdini-svelte from 1.0.8 to 1.2.57 in /client #282
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: | |
- trunk | |
paths: | |
- crates/** | |
- dev/** | |
- plugins/** | |
- tools/** | |
- Cargo.toml | |
- Cargo.lock | |
- rustfmt.toml | |
- clippy.toml | |
- .cargo/** | |
- .ci/github-workflows/** | |
- .config/nextest.toml | |
- .github/workflows/test.yaml | |
- schemas/graphql/schema.graphql | |
pull_request: | |
branches: | |
- trunk | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
compile-xtask-linux: | |
name: Compile xtask (Linux) | |
runs-on: ubuntu-latest | |
env: | |
UXTASK_USE_GLOBAL_CARGO: '1' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install lld | |
run: sudo apt-get install -y lld | |
- name: Install rust | |
run: rustup toolchain install nightly --no-self-update && rustup default nightly | |
- name: Compile xtask | |
run: cargo build -p upsilon-xtask --bin upsilon-xtask --verbose | |
- name: Copy xtask to artifact | |
run: mkdir -p ./ci-artifacts && cp target/debug/upsilon-xtask ./ci-artifacts/upsilon-xtask | |
- name: Upload xtask | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ runner.os }}-xtask | |
path: ./ci-artifacts/upsilon-xtask | |
style-checks: | |
name: Style checks | |
runs-on: ubuntu-latest | |
needs: compile-xtask-linux | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install lld | |
run: sudo apt-get install -y lld | |
- name: Install rust | |
run: rustup toolchain install nightly --no-self-update && rustup default nightly | |
- name: Install rustfmt | |
run: rustup component add rustfmt | |
- name: Download xtask | |
uses: actions/download-artifact@v3 | |
with: | |
name: ${{ runner.os }}-xtask | |
path: ./ci-artifacts/downloaded-xtask | |
- name: Move downloaded xtask to artifact path | |
run: mkdir -p ./ci-artifacts && mv ./ci-artifacts/downloaded-xtask/upsilon-xtask ./ci-artifacts/upsilon-xtask && chmod +x ./ci-artifacts/upsilon-xtask | |
- name: Run fmt check | |
run: ./ci-artifacts/upsilon-xtask fmt-check | |
- name: Git checks | |
run: ./ci-artifacts/upsilon-xtask git-checks --checkout | |
if: success() || failure() | |
- name: Check Cargo.toml dependencies order | |
run: ./ci-artifacts/upsilon-xtask check-cargo-dep-order | |
if: success() || failure() | |
- name: Check Cargo.toml dependencies from workspace.dependencies | |
run: ./ci-artifacts/upsilon-xtask check-cargo-dep-from-workspace | |
if: success() || failure() | |
gql-schema-up-to-date: | |
name: GraphQL schema is up-to-date | |
runs-on: ubuntu-latest | |
needs: compile-xtask-linux | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install lld | |
run: sudo apt-get install -y lld | |
- name: Install rust | |
run: rustup toolchain install nightly --no-self-update && rustup default nightly | |
- name: Download xtask | |
uses: actions/download-artifact@v3 | |
with: | |
name: ${{ runner.os }}-xtask | |
path: ./ci-artifacts/downloaded-xtask | |
- name: Move downloaded xtask to artifact path | |
run: mkdir -p ./ci-artifacts && mv ./ci-artifacts/downloaded-xtask/upsilon-xtask ./ci-artifacts/upsilon-xtask && chmod +x ./ci-artifacts/upsilon-xtask | |
- name: Run gql schema check | |
run: ./ci-artifacts/upsilon-xtask graphql-schema-check | |
ci-files-up-to-date: | |
name: CI files are up-to-date | |
runs-on: ubuntu-latest | |
needs: compile-xtask-linux | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install lld | |
run: sudo apt-get install -y lld | |
- name: Install rust | |
run: rustup toolchain install nightly --no-self-update && rustup default nightly | |
- name: Download xtask | |
uses: actions/download-artifact@v3 | |
with: | |
name: ${{ runner.os }}-xtask | |
path: ./ci-artifacts/downloaded-xtask | |
- name: Move downloaded xtask to artifact path | |
run: mkdir -p ./ci-artifacts && mv ./ci-artifacts/downloaded-xtask/upsilon-xtask ./ci-artifacts/upsilon-xtask && chmod +x ./ci-artifacts/upsilon-xtask | |
- name: Run ci files up to date check | |
run: ./ci-artifacts/upsilon-xtask check-ci-files-up-to-date | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
needs: compile-xtask-linux | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install lld | |
run: sudo apt-get install -y lld | |
- name: Install openssl | |
run: sudo apt-get install -y libssl-dev | |
- name: Install rust | |
run: rustup toolchain install nightly --no-self-update && rustup default nightly | |
- name: Install clippy | |
run: rustup component add clippy | |
- name: Download xtask | |
uses: actions/download-artifact@v3 | |
with: | |
name: ${{ runner.os }}-xtask | |
path: ./ci-artifacts/downloaded-xtask | |
- name: Move downloaded xtask to artifact path | |
run: mkdir -p ./ci-artifacts && mv ./ci-artifacts/downloaded-xtask/upsilon-xtask ./ci-artifacts/upsilon-xtask && chmod +x ./ci-artifacts/upsilon-xtask | |
- name: Lint | |
run: ./ci-artifacts/upsilon-xtask lint | |
test-linux: | |
name: Test (Linux) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install lld | |
run: sudo apt-get install -y lld | |
- name: Install openssl | |
run: sudo apt-get install -y libssl-dev | |
- name: Install rust | |
run: rustup toolchain install nightly --no-self-update && rustup default nightly | |
- name: Install nextest | |
uses: taiki-e/install-action@nextest | |
- name: Print environment | |
run: "\n env\n " | |
- name: Collect other system information | |
run: "\n git --version\n " | |
- name: Compile xtask | |
run: cargo build -p upsilon-xtask --bin upsilon-xtask --verbose | |
- name: Compile binaries and tests | |
run: cargo xtask test --verbose --no-run --profile ci --custom-bin-dir ./bin-dir | |
- name: Run tests | |
run: cargo xtask test --verbose --no-fail-fast --profile ci --no-build-dev --custom-bin-dir ./bin-dir | |
- name: Run doctests | |
run: cargo xtask test --verbose --no-fail-fast --doc --profile ci --no-build-dev | |
test-linux-with-difftests: | |
name: Test (Linux with difftests) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install lld | |
run: sudo apt-get install -y lld | |
- name: Install openssl | |
run: sudo apt-get install -y libssl-dev | |
- name: Install rust | |
run: rustup toolchain install nightly --no-self-update && rustup default nightly | |
- name: Install nextest | |
uses: taiki-e/install-action@nextest | |
- name: Print environment | |
run: "\n env\n " | |
- name: Collect other system information | |
run: "\n git --version\n " | |
- name: Compile xtask | |
run: cargo build -p upsilon-xtask --bin upsilon-xtask --verbose | |
- name: Compile binaries and tests (with difftests) | |
run: cargo xtask test --verbose --no-run --profile difftests --custom-bin-dir ./bin-dir | |
- name: Run tests (with difftests) | |
run: cargo xtask test --verbose --no-fail-fast --profile difftests --no-build-dev --custom-bin-dir ./bin-dir | |
test-linux-only-difftests: | |
name: Test (Linux only difftests) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- name: Get old commit | |
id: get-old-commit | |
run: "\n if [ \"$PUSH_BEFORE\" != \"\" ]; then\n echo \"OLD_COMMIT=$PUSH_BEFORE\" >> $GITHUB_OUTPUT\n else\n if [ \"$PULL_REQUEST_BASE_SHA\" != \"\" ]; then\n echo \"OLD_COMMIT=$PULL_REQUEST_BASE_SHA\" >> $GITHUB_OUTPUT\n else\n echo \"Error: neither PUSH_BEFORE nor PULL_REQUEST_BASE_SHA is set\" >&2\n exit 1\n fi\n fi\n " | |
env: | |
PUSH_BEFORE: ${{ github.event.before }} | |
PULL_REQUEST_BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
- name: Install lld | |
run: sudo apt-get install -y lld | |
- name: Install openssl | |
run: sudo apt-get install -y libssl-dev | |
- name: Install rust | |
run: rustup toolchain install nightly --no-self-update && rustup default nightly | |
- name: Install nextest | |
uses: taiki-e/install-action@nextest | |
- name: Print environment | |
run: "\n env\n " | |
- name: Collect other system information | |
run: "\n git --version\n " | |
- name: Compile xtask | |
run: cargo build -p upsilon-xtask --bin upsilon-xtask --verbose | |
- name: Compile binaries and tests (with difftests) | |
run: cargo xtask test --verbose --no-run --profile difftests --custom-bin-dir ./bin-dir | |
- name: Run tests (only difftests) | |
run: cargo xtask test-quick --from-index --verbose --no-fail-fast --profile difftests --algo git-diff-files --commit ${{ steps.get-old-commit.outputs.OLD_COMMIT }} | |
compile-openssl-win: | |
name: Compile openssl (Windows) | |
runs-on: windows-latest | |
steps: | |
- name: Setup env | |
run: echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append | |
- name: Restore built openssl | |
id: restore_build_openssl | |
uses: actions/cache/restore@v3 | |
env: | |
OPENSSL_TRIPLE: x64-windows-static-md | |
with: | |
path: ${{ env.VCPKG_ROOT }}\installed\${{ env.OPENSSL_TRIPLE }} | |
key: build-openssl-win | |
- name: Install openssl | |
run: vcpkg install openssl:x64-windows-static-md | |
if: steps.restore_build_openssl.outputs.cache-hit != 'true' | |
- name: Save built openssl | |
uses: actions/cache/save@v3 | |
env: | |
OPENSSL_TRIPLE: x64-windows-static-md | |
with: | |
path: ${{ env.VCPKG_ROOT }}\installed\${{ env.OPENSSL_TRIPLE }} | |
key: build-openssl-win | |
if: steps.restore_build_openssl.outputs.cache-hit != 'true' | |
- name: Upload openssl artifacts | |
uses: actions/upload-artifact@v3 | |
env: | |
OPENSSL_TRIPLE: x64-windows-static-md | |
with: | |
name: openssl-artifacts | |
path: ${{ env.VCPKG_ROOT }}\installed\${{ env.OPENSSL_TRIPLE }}\* | |
if-no-files-found: error | |
compile-xtask-win: | |
name: Compile xtask (Windows) | |
runs-on: windows-latest | |
needs: compile-openssl-win | |
env: | |
UXTASK_USE_GLOBAL_CARGO: '1' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Restore built openssl | |
uses: actions/download-artifact@v3 | |
with: | |
path: target-openssl\openssl | |
name: openssl-artifacts | |
- name: Set up openssl env | |
run: echo "OPENSSL_DIR=$(Get-Location)\target-openssl\openssl" | Out-File -FilePath $env:GITHUB_ENV -Append | |
- name: Install rust | |
run: rustup toolchain install nightly --no-self-update && rustup default nightly | |
- name: Print environment | |
shell: pwsh | |
run: 'ls env:' | |
- name: Collect other system information | |
run: "\n git --version\n " | |
- name: Compile xtask | |
run: cargo build -p upsilon-xtask --bin upsilon-xtask --verbose | |
- name: Create xtask artifact dir | |
run: mkdir ./ci-artifacts | |
- name: Copy xtask to artifact | |
run: cp .\target\debug\upsilon-xtask.exe ./ci-artifacts/upsilon-xtask.exe | |
- name: Upload xtask | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ runner.os }}-xtask | |
path: ./ci-artifacts/upsilon-xtask.exe | |
test-win: | |
name: Test (Windows) | |
runs-on: windows-latest | |
needs: | |
- compile-openssl-win | |
- compile-xtask-win | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Restore built openssl | |
uses: actions/download-artifact@v3 | |
with: | |
path: target-openssl\openssl | |
name: openssl-artifacts | |
- name: Set up openssl env | |
run: echo "OPENSSL_DIR=$(Get-Location)\target-openssl\openssl" | Out-File -FilePath $env:GITHUB_ENV -Append | |
- name: Install rust | |
run: rustup toolchain install nightly --no-self-update && rustup default nightly | |
- name: Install nextest | |
uses: taiki-e/install-action@nextest | |
- name: Print environment | |
shell: pwsh | |
run: 'ls env:' | |
- name: Collect other system information | |
run: "\n git --version\n " | |
- name: Download xtask | |
uses: actions/download-artifact@v3 | |
with: | |
name: ${{ runner.os }}-xtask | |
path: ./ci-artifacts/downloaded-xtask | |
- name: Move downloaded xtask to artifact path | |
run: mv ./ci-artifacts/downloaded-xtask/upsilon-xtask.exe ./ci-artifacts/upsilon-xtask.exe | |
- name: Compile binaries and tests | |
run: ./ci-artifacts/upsilon-xtask.exe test --verbose --no-run --profile ci --custom-bin-dir ./bin-dir | |
- name: Run tests | |
run: ./ci-artifacts/upsilon-xtask.exe test --verbose --no-fail-fast --profile ci --no-build-dev --custom-bin-dir ./bin-dir | |
doctest-win: | |
name: Doctest (Windows) | |
runs-on: windows-latest | |
needs: | |
- compile-openssl-win | |
- compile-xtask-win | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Restore built openssl | |
uses: actions/download-artifact@v3 | |
with: | |
path: target-openssl\openssl | |
name: openssl-artifacts | |
- name: Set up openssl env | |
run: echo "OPENSSL_DIR=$(Get-Location)\target-openssl\openssl" | Out-File -FilePath $env:GITHUB_ENV -Append | |
- name: Install rust | |
run: rustup toolchain install nightly --no-self-update && rustup default nightly | |
- name: Print environment | |
shell: pwsh | |
run: 'ls env:' | |
- name: Collect other system information | |
run: "\n git --version\n " | |
- name: Download xtask | |
uses: actions/download-artifact@v3 | |
with: | |
name: ${{ runner.os }}-xtask | |
path: ./ci-artifacts/downloaded-xtask | |
- name: Move downloaded xtask to artifact path | |
run: mv ./ci-artifacts/downloaded-xtask/upsilon-xtask.exe ./ci-artifacts/upsilon-xtask.exe | |
- name: Run doctests | |
run: ./ci-artifacts/upsilon-xtask.exe test --verbose --no-fail-fast --doc --profile ci --no-build-dev |