Skip to content

Commit

Permalink
Merge pull request #102 from xpadev-net/refactor/workflow
Browse files Browse the repository at this point in the history
chore: rename and add workflows
  • Loading branch information
xpadev-net authored Feb 19, 2024
2 parents 13d8b1e + 466f41f commit 2713b8e
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pr-test-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: BuildTests
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20"
- name: allow write in work dir
run: sudo chmod -R 777 .
- name: Install Dependencies
run: |
npm -g install pnpm
pnpm install
- name: Building niconicomments
run: pnpm build
File renamed without changes.
23 changes: 23 additions & 0 deletions .github/workflows/pr-test-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: LinterTests
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20"
- name: allow write in work dir
run: sudo chmod -R 777 .
- name: Install Dependencies
run: |
npm -g install pnpm
pnpm install
- name: Run Linter tests
run: pnpm lint
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ jobs:
run: |
npm -g install pnpm
pnpm install
pnpm build
pnpm playwright install-deps
pnpm playwright install firefox
- name: Building niconicomments
run: |
pnpm build
- name: Run Playwright tests
run: pnpm playwright test
- uses: actions/upload-artifact@v3
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"check-types": "npx tsc --noEmit --jsx react",
"eslint": "eslint src/**/*.ts",
"eslint:fix": "eslint src/**/*.ts --fix",
"format": "prettier --write \"src/**/*.{tsx,ts,js,json,css,scss}\"",
"lint": "npm run eslint&&npm run check-types",
"lint:fix": "npm run format&&npm run eslint:fix&&npm run check-types",
"format": "prettier --check \"src/**/*.{tsx,ts,js,json,css,scss}\"",
"format:fix": "prettier --write \"src/**/*.{tsx,ts,js,json,css,scss}\"",
"lint": "npm run format&&npm run eslint&&npm run check-types",
"lint:fix": "npm run format:fix&&npm run eslint:fix&&npm run check-types",
"prepare": "husky install",
"test": "docker-compose run --rm pw",
"test-server": "http-server"
Expand Down

0 comments on commit 2713b8e

Please sign in to comment.