Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rename and add workflows #102

Merged
merged 3 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
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
Loading