Skip to content

Commit

Permalink
ci: added check workflow and removed old one
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasgeiler committed May 28, 2024
1 parent 14db09a commit 3832873
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 59 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Check

on:
push:
branches:
- main
- 'renovate/**'
paths-ignore:
- '**.md'
- '.gitignore'
- 'assets/**'
- '.github/**'
- '!.github/workflows/check.yml'

pull_request:
branches:
- main
paths-ignore:
- '**.md'
- '.gitignore'
- 'assets/**'
- '.github/**'
- '!.github/workflows/check.yml'

workflow_dispatch:
workflow_call:

jobs:
lint-and-test:
name: Lint & Test
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Setup Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18
cache: npm

- name: Install Dependencies
run: npm install

- name: Lint
run: npm run lint

- name: Test
run: npm run test
58 changes: 0 additions & 58 deletions .github/workflows/main.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint": "eslint src/** test/**",
"test": "jest test",
"test:watch": "npm run test -- --watch",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run lint && npm run test && npm run build"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^11.0.0",
Expand Down

0 comments on commit 3832873

Please sign in to comment.