Skip to content

Commit

Permalink
ci: update configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mammadataei committed Jul 29, 2022
1 parent 75502a5 commit e6e5c14
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 54 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: check

on:
push:
branches:
- main
pull_request:

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7

- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'pnpm'

- name: Install dependencies
run: pnpm i

- name: Lint
run: pnpm lint

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7

- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'pnpm'

- name: Install dependencies
run: pnpm i

- name: Build
run: pnpm build

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
run_install: false

- uses: actions/setup-node@v3
with:
node-version: 16.x

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: |
${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
~/.cache/Cypress
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm i

- name: Run Tests
uses: cypress-io/github-action@v4
with:
install: false
build: pnpm build
start: pnpm example dev
command: pnpm test
54 changes: 0 additions & 54 deletions .github/workflows/ci.yaml

This file was deleted.

0 comments on commit e6e5c14

Please sign in to comment.