Skip to content

Add capability to specify an env file to load configuration from in Stencil CLI commands #808

Add capability to specify an env file to load configuration from in Stencil CLI commands

Add capability to specify an env file to load configuration from in Stencil CLI commands #808

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Tests
on:
pull_request:
branches: [master, main, release-**]
jobs:
build:
strategy:
matrix:
node: [16.x, 18.x]
os: ['ubuntu-latest', 'windows-2019', 'macos-latest']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: npm ci
- name: Verify Github PR Title
run: echo "${{ github.event.pull_request.title }}" | npx commitlint
- name: Verify Git Commit Name
run: git log -1 --pretty=format:"%s" | npx commitlint
- name: Lint the code
run: npm run lint
- name: Run tests
run: npm run test-with-coverage