Merge pull request #6 from advanced-security/v1-refactor #15
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: 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 }} |