This repository was archived by the owner on Apr 25, 2025. It is now read-only.
Test Action #718
This file contains hidden or 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 Action' | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: 0 0 * * * | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-job: | |
| name: Test Job (No GitHub token) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ 'windows-latest' ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Install winget | |
| id: install-winget | |
| uses: Cyberboss/install-winget@main | |
| - name: Check Version | |
| shell: bash | |
| run: | | |
| VERSION="${{ steps.install-winget.outputs.winget-version }}" | |
| if [ -z "$VERSION" ]; then | |
| exit 1 | |
| fi | |
| echo $VERSION | |
| - name: Install wingetcreate | |
| run: winget install wingetcreate --disable-interactivity --accept-source-agreements --accept-package-agreements | |
| test-job-with-token: | |
| name: Test Pinned Job with GitHub Token | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ 'windows-2025', 'windows-2025', 'windows-latest' ] | |
| repeat: [ 'a', 'b' ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Echo Runner OS version | |
| shell: powershell | |
| run: (Get-WmiObject Win32_OperatingSystem).Caption | |
| - name: Install winget | |
| id: install-winget | |
| uses: Cyberboss/install-winget@main | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check Version | |
| shell: bash | |
| run: | | |
| VERSION="${{ steps.install-winget.outputs.winget-version }}" | |
| if [ -z "$VERSION" ]; then | |
| exit 1 | |
| fi | |
| echo $VERSION | |
| - name: Install wingetcreate | |
| run: winget install wingetcreate --disable-interactivity --accept-source-agreements | |
| test-latest-with-token: | |
| name: Test Latest Job with GitHub Token | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ 'windows-2022', 'windows-2025', 'windows-latest' ] | |
| repeat: [ 'a', 'b' ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Echo Runner OS version | |
| shell: powershell | |
| run: (Get-WmiObject Win32_OperatingSystem).Caption | |
| - name: Install winget | |
| id: install-winget | |
| uses: Cyberboss/install-winget@main | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| wget_release_id: latest | |
| - name: Check Version | |
| shell: bash | |
| run: | | |
| VERSION="${{ steps.install-winget.outputs.winget-version }}" | |
| if [ -z "$VERSION" ]; then | |
| exit 1 | |
| fi | |
| echo $VERSION | |
| - name: Install wingetcreate | |
| run: winget install wingetcreate --disable-interactivity --accept-source-agreements |