Skip to content

Add demi-PIAF for critical PIAF #164

Add demi-PIAF for critical PIAF

Add demi-PIAF for critical PIAF #164

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache dependencies
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
# - run: yarn test
- name: Build & Deploy
run: |
git config --global user.name $user_name
git config --global user.email $user_email
git remote set-url origin https://${github_token}@github.com/${repository}
yarn deploy
env:
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"
github_token: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }}
repository: ${{ github.repository }}
REACT_APP_API: https://adminchouettos.lachouettecoop.fr
REACT_APP_MAIL_BDM: [email protected]
REACT_APP_MAIL_COMMISSION_PARTICIPATION: [email protected]
REACT_APP_MAIL_SUPPORT: [email protected]
REACT_APP_MAIL_EMERGENCY_CASHIER: caisse.b2958f0dc1af85540d9fabb6edf58788.show-sender@streams.zulipchat.com
REACT_APP_BUGSNAG_KEY: ${{ secrets.BUGSNAG_KEY }}
REACT_APP_COMMIT: ${{ github.sha }}
REACT_APP_AUTHOR: ${{ github.actor }}