Only Lint Source Files #204
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: Test | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
check-package: | |
name: Check Package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: latest | |
- name: Setup Yarn | |
uses: threeal/[email protected] | |
with: | |
version: stable | |
- name: Check Format | |
run: | | |
yarn format | |
git diff --exit-code HEAD | |
- name: Check Lint | |
run: yarn lint | |
test-package: | |
name: Test Package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: latest | |
- name: Setup Yarn | |
uses: threeal/[email protected] | |
with: | |
version: stable | |
- name: Test Package | |
run: yarn test | |
test-action: | |
name: Test Action | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows, ubuntu, macos] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
path: pipx-install-action | |
sparse-checkout: | | |
action.yaml | |
dist | |
sparse-checkout-cone-mode: false | |
- name: Install Packages | |
uses: ./pipx-install-action | |
with: | |
packages: black ruff | |
- name: Check Packages | |
run: black --version && ruff --version |