fix: leftover #127
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: Test github actions collection | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
env: | |
NODE_VERSION: 20 | |
NPM_VERSION: 10 | |
jobs: | |
test-extra-info-local-usage: | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test extra-info action | |
with: | |
npm_version: ${{ env.NPM_VERSION }} | |
node_version: ${{ env.NODE_VERSION }} | |
uses: ./extra-info | |
test-extra-info-remote-usage: | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Test extra-info action | |
with: | |
npm_version: ${{ env.NPM_VERSION }} | |
node_version: ${{ env.NODE_VERSION }} | |
package_json_path: ../package.json | |
uses: Drassil/gh-actions-collection/extra-info@master | |
test-node-setup: | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test node-setup action | |
with: | |
npm_version: ${{ env.NPM_VERSION }} | |
node_version: ${{ env.NODE_VERSION }} | |
project_id: "test-node-setup" | |
install_command: "npm install" | |
cache_npm_modules: true | |
uses: ./node-setup | |
test-node-setup-default-values: | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test node-setup action | |
with: | |
project_id: "test-node-setup-default" | |
uses: ./node-setup | |
test-changed-files: | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Test changed files | |
id: test-changed-files | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
required_paths: "**" | |
uses: ./changed-files | |
- name: Check outputs | |
run: | | |
if [ -z "${{ steps.test-changed-files.outputs.changed_files }}" ]; then | |
echo "Output changed_files is not set" | |
exit 1 | |
fi | |
if [ -z "${{ steps.test-changed-files.outputs.required_paths_matched }}" ]; then | |
echo "Output required_paths_matched is not set" | |
exit 1 | |
fi | |
- name: Test changed files without required paths | |
id: test-changed-files-without-required-paths | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
uses: ./changed-files | |
- name: Check outputs without required paths | |
run: | | |
if [ -z "${{ steps.test-changed-files-without-required-paths.outputs.changed_files }}" ]; then | |
echo "Output changed_files is not set" | |
exit 1 | |
fi | |
if [ -z "${{ steps.test-changed-files-without-required-paths.outputs.required_paths_matched }}" ]; then | |
echo "Output required_paths_matched is not set" | |
exit 1 | |
fi |