feat(Position): allow setting position, before sending a command #19
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
name: NPM vue2/ts workflow | |
on: | |
push: | |
branches: [ $default-branch ] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@master | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- name: Build project | |
run: | | |
npm ci | |
npm run build | |
- uses: montudor/action-zip@v1 | |
with: | |
args: zip -qq -r dist.zip dist | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: dist | |
- run: echo "🍏 This job's status is ${{ job.status }}." | |
test-unit: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@master | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- name: Run tests | |
run: | | |
npm ci | |
npm run test:unit | |
- uses: montudor/action-zip@v1 | |
with: | |
args: zip -qq -r coverage.zip coverage | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-reports | |
path: coverage | |
- run: echo "🍏 This job's status is ${{ job.status }}." | |
deploy: | |
runs-on: ubuntu-latest | |
needs: [build, test-unit] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@master | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- run: | | |
npm ci | |
npm run build | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BIG_ROBOT_ARM_UI }}' | |
channelId: live | |
projectId: big-robot-arm-ui |