-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Node CI | ||
|
||
# Push tests pushes; PR tests merges | ||
on: [ push ] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./bench | ||
|
||
jobs: | ||
|
||
# Benchmark the build | ||
benchmark: | ||
# Setup | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
node-version: [ 18.x ] | ||
os: [ ubuntu-latest ] | ||
|
||
# Go | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Env | ||
run: | | ||
echo "Event name: ${{ github.event_name }}" | ||
echo "Git ref: ${{ github.ref }}" | ||
echo "GH actor: ${{ github.actor }}" | ||
echo "SHA: ${{ github.sha }}" | ||
VER=`node --version`; echo "Node ver: $VER" | ||
VER=`npm --version`; echo "npm ver: $VER" | ||
echo "OS ver: ${{ runner.os }}" | ||
- name: Install root deps | ||
run: cd .. && npm install --omit=dev | ||
|
||
- name: Install | ||
run: npm install | ||
|
||
- name: Test | ||
run: npm run bench | ||
# Dummy creds are sufficient until we add live testing | ||
env: | ||
AWS_ACCESS_KEY_ID: 'foo' | ||
AWS_SECRET_ACCESS_KEY: 'bar' |