Skip to content

Commit

Permalink
Merge pull request #95 from github/brrygrdn/verify-build-mvp
Browse files Browse the repository at this point in the history
Improve the build step so we use a fixed node version, Re-introduce verification the build is up to date in a PR
  • Loading branch information
Barry Gordon authored and GitHub committed Sep 29, 2021
2 parents d553ef9 + b0fa004 commit 8f0ccd5
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 9,201 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
id: nvm
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
- run: npm ci
- run: npm run all
- run: git diff --quiet
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.22.6
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

### Prerequisites

**node**: e.g. `brew install node` on Mac
**Node Version Manager**: e.g. `brew install nvm` on Mac

**docker**: e.g. `brew install docker` on Mac
**Docker**: e.g. `brew install docker` on Mac

### Project dependencies

```bash
$ nvm use
$ npm install
```

Expand Down
46 changes: 38 additions & 8 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 8f0ccd5

Please sign in to comment.