This Github Action installs the spatial CLI.
on: [push]
name: CI
jobs:
build:
name: Build SpatialOS project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: jamiebrynes7/get-spatial-cli-action@v1
with:
version: 20190416.094616.a865bb5b54
refresh_token: "${OAUTH_TOKEN_SECRET}"
- run: spatial build| Name | Required | Description | Type | Default |
|---|---|---|---|---|
refresh_token |
✓ | The auth token to use for the Spatial CLI. | string | |
version |
The version of the Spatial CLI to download. | string | "latest" |
Install the dependencies
$ npm installBuild the typescript
$ npm run buildRun the tests ✔️
$ npm test