Prepare v0.28.2 #1430
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: Formatter Test & Build | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
ref: ${{ github.ref }} | |
- uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- env: | |
HUSKY_SKIP_INSTALL: "true" | |
run: | | |
yarn | |
- name: type check | |
run: | | |
yarn run test:tsc | |
- name: test & build | |
env: | |
HUSKY_SKIP_INSTALL: "true" | |
run: | | |
cd packages/formatter | |
yarn | |
yarn pack | |
- name: 'Upload tgz' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: package | |
path: ./packages/formatter/*.tgz | |
# - uses: codecov/codecov-action@v3 | |
# if: github.repository == 'mtxr/vscode-sqltools' | |
# with: | |
# flags: "formatter" |