Skip to content

Commit

Permalink
chore: Merge branch 'main' into update-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
saadjutt01 committed Dec 6, 2021
2 parents e436a9d + b1a5597 commit 5c4c5c1
Show file tree
Hide file tree
Showing 61 changed files with 9,435 additions and 3,520 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@ on:
- main

jobs:
build:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Dependencies
run: npm ci

- name: Check Code Style
run: npm run lint

- name: Build Project
run: npm run build

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
env:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/run-tests-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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: SASjs Utils Run Tests on Windows

on:
pull_request:

jobs:
test:
runs-on: windows-latest

strategy:
matrix:
node-version: [lts/fermium]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm ci

- name: Check Code Style
run: npm run lint

- name: Run Unit Tests
run: npm test

- name: Build Package
run: npm run package:lib
env:
CI: true
13 changes: 8 additions & 5 deletions .github/workflows/build.yml → .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
# 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: SASjs Utils Build
name: SASjs Utils Run Tests

on:
push:
pull_request:

jobs:
build:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [15.x]
node-version: [lts/fermium]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm ci

- name: Check Code Style
run: npm run lint

- name: Run Unit Tests
run: npm test

- name: Build Package
run: npm run package:lib
env:
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"trailingComma": "none",
"tabWidth": 2,
"semi": false,
"singleQuote": true
"singleQuote": true,
"endOfLine": "auto"
}
8 changes: 7 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
module.exports = {
preset: 'ts-jest',
preset: 'ts-jest/presets/js-with-ts',
resetMocks: true,
restoreMocks: true,
setupFilesAfterEnv: ['jest-extended/all'],
testEnvironment: 'node',
transform: {
'^.+\\.ts?$': 'ts-jest'
},
coverageThreshold: {
global: {
branches: 80,
Expand Down
Loading

0 comments on commit 5c4c5c1

Please sign in to comment.