Skip to content

Commit

Permalink
add some workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
imaarov committed May 1, 2024
1 parent f6a5641 commit 2f53f69
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 100 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/check-dist.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Deploy
run: |
# Add your deployment script or commands here
43 changes: 10 additions & 33 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,26 @@
name: Lint Codebase
name: Linter

on:
pull_request:
branches:
- main
push:
branches:
- main

permissions:
contents: read
packages: read
statuses: write
- master

jobs:
lint:
name: Lint Codebase
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
uses: actions/setup-node@v2
with:
node-version-file: .node-version
cache: npm
node-version: '14'

- name: Install Dependencies
id: install
run: npm ci
- name: Install dependencies
run: npm install

- name: Lint Codebase
id: super-linter
uses: super-linter/super-linter/slim@v6
env:
DEFAULT_BRANCH: main
FILTER_REGEX_EXCLUDE: dist/**/*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TYPESCRIPT_DEFAULT_STYLE: prettier
VALIDATE_ALL_CODEBASE: true
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_JSCPD: false
- name: Run ESLint
run: npm run lint

0 comments on commit 2f53f69

Please sign in to comment.