Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['10.x', '12.x', '14.x']
node: ['12.x', '14.x']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
Expand All @@ -19,14 +19,22 @@ jobs:
with:
node-version: ${{ matrix.node }}

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command

- name: Lint
run: yarn lint
uses: borales/actions-yarn@v4
with:
cmd: lint # will run `yarn lint` command

- name: Test
run: yarn test --ci --coverage --maxWorkers=2
uses: borales/actions-yarn@v4
with:
cmd: test --ci --coverage --maxWorkers=2 # will run `yarn test --ci --coverage --maxWorkers=2` command

- name: Build
run: yarn build
uses: borales/actions-yarn@v4
with:
cmd: build # will run `yarn build` command
7 changes: 0 additions & 7 deletions test/blah.test.ts

This file was deleted.

7 changes: 7 additions & 0 deletions test/getRandomUsername.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { getRandomUsername } from '../src';

describe('getRandomUsername', () => {
it('get a string', () => {
expect(typeof getRandomUsername()).toBe('string');
});
});