playwright/.github/workflows
RaiseYI 5e9d2b1e14 Improve repository documentation, configuration, and examples
Add new sections to `README.md`, create `CHANGELOG.md`, and update `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md`, and `.eslintrc.js`.

* **README.md**
  - Add an overview section to provide a better understanding of the project.
  - Add a getting started section with installation and first test instructions.
  - Add a section on running tests and checks.
  - Add a section on contributing to the project.

* **CHANGELOG.md**
  - Create a new file to document changes, new features, and bug fixes in each release.

* **CONTRIBUTING.md**
  - Add guidelines for coding standards, pull request process, and issue reporting.

* **CODE_OF_CONDUCT.md**
  - Add guidelines for community behavior and ensure a welcoming environment for all contributors.

* **.eslintrc.js**
  - Ensure that the ESLint configuration is properly set up and used.

* **.github/workflows**
  - Add GitHub Actions workflows for continuous integration and other automated tasks.

* **examples**
  - Add more examples and use cases to help users understand how to use the project effectively.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/playwright?shareId=XXXX-XXXX-XXXX-XXXX).
2024-11-01 18:31:28 +08:00

90 lines
1.7 KiB
Plaintext

# This directory contains GitHub Actions workflows for continuous integration (CI) and other automated tasks.
# Ensure that the GitHub Actions workflows are properly configured and cover all necessary checks.
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Run lint
run: npm run lint
- name: Run tests
run: npm test
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Run lint
run: npm run lint
type-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Run type checker
run: npm run tsc