feat: email winglib #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: email-pull | |
on: | |
pull_request: | |
paths: | |
- email/** | |
jobs: | |
build-email: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
sparse-checkout: email | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
registry-url: https://registry.npmjs.org | |
- name: Install winglang | |
run: npm i -g winglang | |
- name: Install dependencies | |
run: npm install --include=dev | |
working-directory: email | |
- name: Test | |
run: wing test | |
working-directory: email | |
- name: Generate docs | |
run: wing docs | |
working-directory: email | |
- name: Pack | |
run: wing pack | |
working-directory: email | |
- name: Check for missing changes | |
run: git diff --exit-code || (echo 'Please run "npm install && wing test && wing | |
docs" from ./email, and commit any changes to your branch.' && exit 1) |