Skip to content

doc: contributing - add maintainer how-to #20

doc: contributing - add maintainer how-to

doc: contributing - add maintainer how-to #20

Workflow file for this run

# continuous integration
name: botensky-ci
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the prod branch
push:
branches: [ main ]
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [ 18.x ]
environment: github_actions_bes
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
# npx force-resolutions : in case of Permission denied: run it locally to fix package-lock.json
run: |
echo "install"
npm install
echo "show outdated (if any)"
npm outdated --depth=3 || echo "you must think about update your dependencies :)"
- name: Run tests
env:
TZ: ${{ vars.TZ }}
NODE_ENV: ${{ vars.NODE_ENV }}
BLUESKY_SERVICE: ${{ vars.BLUESKY_SERVICE }}
BLUESKY_USERNAME: ${{ vars.BLUESKY_USERNAME }}
BLUESKY_PASSWORD: ${{ secrets.BLUESKY_PASSWORD }}
BOT_ENGINE_MIN_INTERVAL_MS: ${{ secrets.BOT_ENGINE_MIN_INTERVAL_MS }}
BOT_PLANTNET_SIMULATE: ${{ secrets.BOT_PLANTNET_SIMULATE }}
BOT_TOKEN_SIMULATION: ${{ secrets.BOT_TOKEN_SIMULATION }}
PLANTNET_API_PRIVATE_KEY: ${{ secrets.PLANTNET_API_PRIVATE_KEY }}
run: npm run ci-test