Skip to content

ci: temporary disable if condition to publish the first version of th… #112

ci: temporary disable if condition to publish the first version of th…

ci: temporary disable if condition to publish the first version of th… #112

Workflow file for this run

name: Continuos Integration
on:
push:
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: install
run: npm ci
- name: eslint
run: npm run lint
- name: build
run: npm run build
test_unit:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: install
run: npm ci
- name: test
run: npm run test
test_visual:
name: Visual
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
publish:
name: Publish
timeout-minutes: 2
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
pages: write
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
token: ${{ secrets.GITHUB_TOKEN }}
- name: build docs
# if: ${{ steps.release.outputs.release_created }}
run: |
npm run build:docs
- name: Setup Pages
# if: ${{ steps.release.outputs.release_created }}
uses: actions/configure-pages@v4
- name: upload docs artifact
# if: ${{ steps.release.outputs.release_created }}
uses: actions/upload-pages-artifact@v2
- name: deploy docs artifact
# if: ${{ steps.release.outputs.release_created }}
uses: actions/deploy-pages@v3
needs: [test_unit, test_visual, build]
if: github.ref_name == 'main'