Skip to content

Commit

Permalink
feat: change actions
Browse files Browse the repository at this point in the history
  • Loading branch information
soblvsk committed Jul 11, 2023
1 parent fb1f684 commit 53aa629
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 1,880 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on: pull_request

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Download browsers for e2e tests
run: npx playwright install --with-deps

- name: Run unit tests
run: npm run test-ci

- name: Run e2e tests
run: npm run e2e

- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
10 changes: 3 additions & 7 deletions .github/workflows/commitLint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,23 @@ on: [push, pull_request]
jobs:
commitlint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'

- name: Install commitlint
run: |
npm install conventional-changelog-conventionalcommits
npm install commitlint@latest
npm install @commitlint/config-conventional
- name: Setup commitlint config
run: |
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
Expand Down
Loading

0 comments on commit 53aa629

Please sign in to comment.