Skip to content

Bump the npm-development group across 1 directory with 6 updates #190

Bump the npm-development group across 1 directory with 6 updates

Bump the npm-development group across 1 directory with 6 updates #190

Workflow file for this run

name: Continuous Integration
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test-typescript:
name: TypeScript Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
- name: Install Dependencies
id: npm-ci
run: npm ci
- name: Check Format
id: npm-format-check
run: npm run format:check
- name: Lint
id: npm-lint
run: npm run lint
- name: Test
id: npm-ci-test
run: npm run ci-test
test-action:
name: GitHub Actions Test
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Test Local Action
id: test-action
uses: ./
with:
post-run: |
echo "test" | tee "${{ runner.temp }}/test.txt"
if [ -f "${{ runner.temp }}/post.sh" ]; then
"${{ runner.temp }}/post.sh"
fi
- name: Test Local Action (login shell)
id: test-longin-shell
uses: ./
with:
shell: bash -l -ex {0}
post-run: |
echo "test" | tee "${{ runner.temp }}/test.txt"
if [ -f "${{ runner.temp }}/post.sh" ]; then
"${{ runner.temp }}/post.sh"
fi
- name: Test Local Action (Python)
id: test-python
uses: ./
with:
shell: python
post-run: |
print("Hello, world!")
- name: Test file
run: |
test ! -f "${{ runner.temp }}/test.txt"
test-action-windows:
name: GitHub Actions Test (Windows)
runs-on: windows-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Test Local Action
id: test-action
uses: ./
with:
post-run: |
echo "test" | tee "${{ runner.temp }}/test.txt"
if [ -f "${{ runner.temp }}/post.sh" ]; then
"${{ runner.temp }}/post.sh"
fi
- name: Test Local Action (pwsh)
id: test-pwsh
uses: ./
with:
shell: pwsh
post-run: |
Write-Host "Hello World!!"
- name: Test Local Action (cmd)
id: test-cmd
uses: ./
with:
shell: cmd
post-run: |
echo "Hello World!!"
- name: Test Local Action (Python)
id: test-python
uses: ./
with:
shell: python
post-run: |
print("Hello, world!")
- name: Test file
run: |
test ! -f "${{ runner.temp }}/test.txt"