Skip to content

Commit

Permalink
#8 miss env name for major
Browse files Browse the repository at this point in the history
  • Loading branch information
boly38 committed May 23, 2024
1 parent ca38f55 commit 2bed043
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 38 deletions.
59 changes: 30 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,35 @@ jobs:
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [18.x]
node-version: [ 18.x ]

environment: github_actions_bes #NODE_ENV=test
environment: github_actions_bes
steps:
- 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
- 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
7 changes: 4 additions & 3 deletions .github/workflows/major.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
node-version: [ 18.x ]

environment: github_actions_bes
steps:
- name: Git checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: 'prod'
token: ${{ secrets.GH_ACTIONS_TOKEN }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/minor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [ 16.x ]

environment: github_actions_bes
steps:
- name: Git checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: 'prod'
token: ${{ secrets.GH_ACTIONS_TOKEN }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [ 16.x ]

environment: github_actions_bes
steps:
- name: Git checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: 'prod'
token: ${{ secrets.GH_ACTIONS_TOKEN }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand Down

0 comments on commit 2bed043

Please sign in to comment.