Skip to content

Add bundle plugin

Add bundle plugin #10

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: Install node
uses: actions/setup-node@v3
with:
node-version-file: /actions/bundle-plugin/.node-version
- name: Install Yarn
run: corepack enable |
corepack prepare yarn@stable --activate
# Yarn dependencies cannot be cached until yarn is installed
# WORKAROUND: https://github.com/actions/setup-node/issues/531
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
cache-dependency-path: ./actions/bundle-plugin/yarn.lock
cache: yarn
- name: Install Dependencies
id: yarn-ci
run: yarn install --immutable
- name: Check Format
id: yarn-format-check
run: yarn format:check
- name: Lint
id: yarn-lint
run: yarn lint
- name: Test
id: yarn-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 }}"