Skip to content

Commit

Permalink
Repo standardization, using GH actions
Browse files Browse the repository at this point in the history
Enforcing minimum node version of 12

Removing circleci config, adding GH actions
  • Loading branch information
ryanml committed Apr 30, 2021
1 parent a4a139d commit cef2475
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 99 deletions.
81 changes: 0 additions & 81 deletions .circleci/config.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .circleci/scripts/collect-har-artifact.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .circleci/scripts/deps-install.sh

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build, Lint, and Test

on:
push:
branches: [main]
pull_request:

jobs:
build-lint-test:
name: Build, Lint, and Test
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile --ignore-scripts
- run: yarn build
- run: yarn lint
- run: yarn test
all-jobs-pass:
name: All jobs pass
runs-on: ubuntu-20.04
needs:
- build-lint-test
steps:
- uses: actions/checkout@v2
- run: echo "Great success!"
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v10
v12
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ The project follows the same release process as the other libraries in the MetaM
6. Once approved, the PR is squashed & merged
7. The commit on the base branch is tagged
8. The tag can be published as needed

## Running tests

```bash
yarn test
```
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"index.d.ts",
"index.js.map"
],
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"prepublishOnly": "yarn build",
"build": "tsc --project .",
Expand Down

0 comments on commit cef2475

Please sign in to comment.