Skip to content

Commit

Permalink
New Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Feb 7, 2024
1 parent 1b68a71 commit e525026
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/ci-cd-20.9.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# This CI Workflow was deployed and configured by WarpWing and Nate.
name: CI/CD 20.9.0

on:
push:
pull_request:
workflow_dispatch:

env:
NODE_VERSION: '20.9.0'

jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install node dependencies
run: npm i

- name: prettier
run: npm run prettier:check

eslint:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install node dependencies
run: npm i

- name: eslint
run: npm run lint:check

build:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install node dependencies
run: npm i

- name: Copy Config,
run: cp config.example.json config.json

- name: Test Build
run: npm run build

0 comments on commit e525026

Please sign in to comment.