Add hashedPassword and make email unique (#97) #111
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: CI | |
on: push | |
concurrency: | |
group: 'ci' | |
cancel-in-progress: true | |
jobs: | |
lintfix: | |
name: Lint and fix | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: π― Read .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
id: nvm | |
- name: ποΈ Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '${{ steps.nvm.outputs.NVMRC }}' | |
- name: π¦ Setup pnpm - Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
run_install: false | |
- name: π¦ Setup pnpm - Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- name: π¦ Setup pnpm - Setup pnpm cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: π¦ Install dependencies | |
run: pnpm install | |
- name: π¦ Run lint | |
run: pnpm lint --fix | |
- name: ποΈ Run format | |
run: pnpm format | |
- name: πΎ Commit & Push changes | |
uses: actions-js/push@master | |
with: | |
message: 'chore: Auto-fix lint errors' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
test-integration: | |
name: Test integration | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: π― Read .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
id: nvm | |
- name: ποΈ Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '${{ steps.nvm.outputs.NVMRC }}' | |
- name: π¦ Setup pnpm - Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
run_install: false | |
- name: π¦ Setup pnpm - Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- name: π¦ Setup pnpm - Setup pnpm cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: π¦ Install dependencies | |
run: pnpm install | |
- name: π§ͺ Run test | |
run: pnpm test:integration |