actually run the tests in CI
@@ -10,15 +10,11 @@ jobs:
working-directory: ui
steps:
- uses: actions/checkout@v2
- - run: docker build .
- # We run the build a second time instead of trying to wire the docker SHA from
- # one step to another. The layers should be cached, so it should be really fast.
- # We run the build in a separate step above so that there's nice output if something
- # doesn't work.
- - run: docker run --name ui --rm -d -p 4000:4000 $(docker build -q .)
- # We don't have UI tests yet, so we just make sure the `/` route returns 200.
- - run: curl --fail http://localhost:4000
- - run: docker stop ui
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 12.20.0
+ - run: npm install
+ - run: npm test
api:
runs-on: ubuntu-latest
defaults:
