Skip to content

Merge pull request #6 from advanced-security/v1-refactor #15

Merge pull request #6 from advanced-security/v1-refactor

Merge pull request #6 from advanced-security/v1-refactor #15

Workflow file for this run

name: CI
on:
push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: pester tests
uses: zyborg/[email protected]
with:
include_paths: ./tests/GitHubActions_tests.ps1
exclude_tags: SkipCI
report_name: action_base_tests
report_title: Action Base Tests
gist_name: pwsh-github-action-base_tests.md
github_token: ${{ secrets.GITHUB_TOKEN }}
gist_token: ${{ secrets.GIST_TOKEN }}
gist_badge_label: Tests %ExecutedAt%
# - name: pester tests manually
# shell: pwsh
# run: |
# $neededModules = @(
# 'Pester'
# 'GitHubActions'
# )
# $neededModules | % {
# if (-not (Get-Module -ListAvailable $_)) {
# Install-Module $_ -Force
# }
# }
# ./tests/GitHubActions_tests.ps1
# - name: bundle distributable components
# shell: pwsh
# run: |
# Compress-Archive -DestinationPath ./dist.zip -Path @(
# 'js', 'lib'
# 'SAMPLE-*', 'LICENSE', 'README.md'
# )
## For testing out tests on Windows
build-on-win:
runs-on: windows-latest
continue-on-error: true
steps:
- name: checkout
uses: actions/checkout@v1
- name: pester tests
uses: zyborg/[email protected]
with:
include_paths: ./tests/GitHubActions_tests.ps1
exclude_tags: SkipCI
report_name: action_base_tests-on-win
report_title: Action Base Tests (On Windows)
github_token: ${{ secrets.GITHUB_TOKEN }}