Skip to content

Test Action

Test Action #625

Workflow file for this run

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-2022', 'windows-latest' ]
repeat: [ 'a', 'b', 'c', 'd', 'e', 'f', 'g' ]
runs-on: ${{ matrix.os }}
steps:
- 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-latest' ]
repeat: [ 'a', 'b', 'c', 'd', 'e', 'f', 'g' ]
runs-on: ${{ matrix.os }}
steps:
- 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