Skip to content

CICD

CICD #2022

Workflow file for this run

name: CICD
on:
push:
paths-ignore:
- "**.md"
- ".mergify.yml"
- "LICENSE"
- ".github/CODEOWNERS"
- ".github/PULL_REQUEST_TEMPLATE.md"
- ".github/labeler.yml"
- ".github/FUNDING.yml"
- ".github/workflows/autoupdate.yml"
- ".github/workflows/labeler.yml"
- ".github/workflows/size-label.yml"
branches: [ master ]
pull_request:
paths-ignore:
- "**.md"
- ".mergify.yml"
- "LICENSE"
- ".github/CODEOWNERS"
- ".github/PULL_REQUEST_TEMPLATE.md"
- ".github/labeler.yml"
- ".github/FUNDING.yml"
- ".github/workflows/autoupdate.yml"
- ".github/workflows/labeler.yml"
- ".github/workflows/size-label.yml"
branches: [ master ]
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
powershell:
name: Powershell
strategy:
matrix:
os: [windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Run script
run: .\NewMachineSetup.ps1
shell: powershell
bash:
name: Bash
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Run script
run: ./NewMachineSetup.sh
shell: bash
psscriptanalyzer:
name: PSScriptAnalyzer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Run PSScriptAnalyzer
uses: microsoft/psscriptanalyzer-action@v1.1
with:
# Check https://github.com/microsoft/action-psscriptanalyzer for more info about the options.
# The below set up runs PSScriptAnalyzer to your entire repository and runs some basic security rules.
path: .\
recurse: true
output: results.sarif
# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
tag:
name: Tag Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/github-tag-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true