mirror of
https://github.com/movie-web/simple-proxy.git
synced 2025-09-13 10:43:26 +00:00
Merge branch 'dev' into origin/master
This commit is contained in:
32
.github/workflows/build_release.yml
vendored
Normal file
32
.github/workflows/build_release.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Build Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
- name: Install NPM packages
|
||||
run: npm install
|
||||
|
||||
- name: Build project
|
||||
run: npm run build
|
||||
|
||||
- name: Upload production-ready build files
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: worker.js
|
||||
path: ./dist/worker.js
|
42
.github/workflows/linting_testing.yml
vendored
Normal file
42
.github/workflows/linting_testing.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Linting and Testing
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- dev
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
jobs:
|
||||
linting:
|
||||
name: Run Linters
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
- name: Install NPM packages
|
||||
run: npm install
|
||||
|
||||
- name: Run ESLint Report
|
||||
run: npm run lint:report
|
||||
# continue on error, so it still reports it in the next step
|
||||
continue-on-error: true
|
||||
|
||||
- name: Annotate Code Linting Results
|
||||
uses: ataylorme/eslint-annotate-action@v2
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
report-json: "eslint_report.json"
|
||||
|
||||
- name: Build Project
|
||||
run: npm run build
|
||||
|
||||
|
@@ -4,9 +4,9 @@
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"lint": "eslint --ext .js lib/",
|
||||
"lint:fix": "eslint --fix --ext .js lib/",
|
||||
"lint:report": "eslint --ext .js --output-file eslint_report.json --format json lib/"
|
||||
"lint": "eslint --ext .js src/",
|
||||
"lint:fix": "eslint --fix --ext .js src/",
|
||||
"lint:report": "eslint --ext .js --output-file eslint_report.json --format json src/"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.30.0",
|
||||
|
Reference in New Issue
Block a user