Bump rollup from 4.26.0 to 4.27.3 #978
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: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
test-package: | |
name: Test Package | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Project | |
uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version-file: .nvmrc | |
- name: Setup Yarn | |
uses: threeal/[email protected] | |
- name: Test Package | |
run: yarn test | |
test-action: | |
name: Test Action | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, macos-14, windows-2022] | |
steps: | |
- name: Checkout Sample Project | |
uses: actions/[email protected] | |
with: | |
repository: threeal/cpp-starter | |
ref: v1.0.0 | |
- name: Checkout Action | |
uses: actions/[email protected] | |
with: | |
path: cmake-action | |
sparse-checkout: | | |
action.yml | |
dist | |
sparse-checkout-cone-mode: false | |
- name: Build Sample Project | |
id: cmake-action | |
uses: ./cmake-action | |
- name: Run Sample Project | |
run: ${{ steps.cmake-action.outputs.build-dir }}/${{ matrix.os == 'windows-2022' && 'Debug/generate_sequence.exe' || 'generate_sequence' }} 5 | |
test-action-with-specified-dirs: | |
name: Test Action With Specified Directories | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Sample Project | |
uses: actions/[email protected] | |
with: | |
repository: threeal/cpp-starter | |
ref: v1.0.0 | |
path: project | |
- name: Checkout Action | |
uses: actions/[email protected] | |
with: | |
path: cmake-action | |
sparse-checkout: | | |
action.yml | |
dist | |
sparse-checkout-cone-mode: false | |
- name: Build Sample Project | |
id: cmake-action | |
uses: ./cmake-action | |
with: | |
source-dir: project | |
build-dir: output | |
- name: Run Sample Project | |
run: output/generate_sequence 5 | |
test-action-without-run-build: | |
name: Test Action Without Run Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Sample Project | |
uses: actions/[email protected] | |
with: | |
repository: threeal/cpp-starter | |
ref: v1.0.0 | |
- name: Checkout Action | |
uses: actions/[email protected] | |
with: | |
path: cmake-action | |
sparse-checkout: | | |
action.yml | |
dist | |
sparse-checkout-cone-mode: false | |
- name: Modify Sample Project | |
run: echo 'invalid' >> src/main.cpp | |
- name: Configure Sample Project | |
uses: ./cmake-action | |
with: | |
run-build: false | |
test-action-with-additional-options: | |
name: Test Action With Additional Options | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Sample Project | |
uses: actions/[email protected] | |
with: | |
repository: threeal/cpp-starter | |
ref: v1.0.0 | |
- name: Checkout Action | |
uses: actions/[email protected] | |
with: | |
path: cmake-action | |
sparse-checkout: | | |
action.yml | |
dist | |
sparse-checkout-cone-mode: false | |
- name: Build Sample Project | |
uses: ./cmake-action | |
with: | |
options: BUILD_TESTING=ON | |
- name: Test Sample Project | |
uses: threeal/[email protected] | |
test-action-with-custom-generator: | |
name: Test Action With Custom Generator | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Sample Project | |
uses: actions/[email protected] | |
with: | |
repository: threeal/cpp-starter | |
ref: v1.0.0 | |
- name: Checkout Action | |
uses: actions/[email protected] | |
with: | |
path: cmake-action | |
sparse-checkout: | | |
action.yml | |
dist | |
sparse-checkout-cone-mode: false | |
- name: Setup Ninja | |
uses: seanmiddleditch/gha-setup-ninja@v5 | |
- name: Configure Sample Project | |
id: cmake-action | |
uses: ./cmake-action | |
with: | |
generator: Ninja | |
run-build: false | |
- name: Build Sample Project | |
run: ninja -C ${{ steps.cmake-action.outputs.build-dir }} |