Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
rkolesnikov committed Aug 22, 2023
2 parents b0f7b60 + 535e294 commit ad0cd4b
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI
name: GitHub Pages

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches:
- main

jobs:
build:

deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
- name: Install dependencies
run: npm install

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
- name: Run tests
run: npm run test:ci

- name: Run Lint
run: npm run lint --if-present

- name: Build
run: npm run build:prod

- name: Deploy
if: success()
uses: actions/setup-node@v3
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
cache: 'npm'
- run: npm install
github_token: ${{ secrets.APP_TOKEN }}
- run: npm run deploy --if-present
- run: npm test -- --watch=false --browsers=ChromeHeadless
- run: npm run cypress:run --if-present
- run: npm run lint --if-present

0 comments on commit ad0cd4b

Please sign in to comment.