setup-spatialos-cli
is a GitHub Action for downloading and installing the SpatialOS CLI.
This action supports:
- MacOS, Windows, and Linux agent hosts
- Pinning the SpatialOS CLI to a particular version
- Setting the service account OAuth token for authentication to the SpatialOS platform.
on: [push]
name: CI
jobs:
build:
name: Build SpatialOS project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: jamiebrynes7/[email protected]
with:
oauth_token: "${OAUTH_TOKEN_SECRET}"
version: 20190416.094616.a865bb5b54
- run: spatial build
Name | Required | Description | Type | Default |
---|---|---|---|---|
oauth_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 install
Build the typescript
$ npm run build
Run the tests ✔️
$ npm test
The scripts and documentation in this project are released under the MIT License.