Add bundle plugin #4
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: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
defaults: | |
run: | |
working-directory: ./actions/bundle-plugin/ | |
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: /actions/bundle-plugin/.node-version | |
cache-dependency-path: ./actions/bundle-plugin/yarn.lock | |
cache: yarn | |
- name: Install Dependencies | |
id: yarn-ci | |
run: yarn install --immutable | |
- name: Check Format | |
id: npm-format-check | |
run: yarn format:check | |
- name: Lint | |
id: npm-lint | |
run: yarn lint | |
- name: Test | |
id: npm-ci-test | |
run: yarn ci-test | |
test-action: | |
name: GitHub Actions Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Test Local Action | |
id: test-action | |
uses: ./actions/bundle-plugin/ | |
with: | |
milliseconds: 2000 | |
- name: Print Output | |
id: output | |
run: echo "${{ steps.test-action.outputs.time }}" |