--- /dev/null
+name: autofix.ci
+
+on:
+ pull_request:
+permissions:
+ contents: read
+
+jobs:
+ autofix:
+ runs-on: ubuntu-latest
+ env:
+ PUPPETEER_SKIP_DOWNLOAD: 'true'
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Install pnpm
+ uses: pnpm/action-setup@v2
+
+ - name: Set node version to 18
+ uses: actions/setup-node@v3
+ with:
+ node-version: 18
+ cache: pnpm
+
+ - run: pnpm install
+
+ - name: Run eslint
+ run: pnpm run lint --fix
+
+ - name: Run prettier
+ run: pnpm run format
+
+ - uses: autofix-ci/action@8caa572fd27b0019a65e4c695447089c8d3138b9
unit-test:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
+ env:
+ PUPPETEER_SKIP_DOWNLOAD: 'true'
steps:
- uses: actions/checkout@v3
node-version: 18
cache: 'pnpm'
- - name: Skip Puppeteer download
- run: echo "PUPPETEER_SKIP_DOWNLOAD=1" >> $GITHUB_ENV
-
- run: pnpm install
- name: Run unit tests
unit-test-windows:
runs-on: windows-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
+ env:
+ PUPPETEER_SKIP_DOWNLOAD: 'true'
steps:
- uses: actions/checkout@v3
node-version: 18
cache: 'pnpm'
- - name: Skip Puppeteer download
- run: echo "PUPPETEER_SKIP_DOWNLOAD=1" >> $env:GITHUB_ENV
-
- run: pnpm install
- name: Run compiler unit tests
lint-and-test-dts:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
+ env:
+ PUPPETEER_SKIP_DOWNLOAD: 'true'
steps:
- uses: actions/checkout@v3
node-version: 18
cache: 'pnpm'
- - name: Skip Puppeteer download
- run: echo "PUPPETEER_SKIP_DOWNLOAD=1" >> $GITHUB_ENV
-
- run: pnpm install
- name: Run eslint
pull-requests: write
issues: write
+env:
+ PUPPETEER_SKIP_DOWNLOAD: 'true'
+
jobs:
size-report:
runs-on: ubuntu-latest
cache: pnpm
- name: Install dependencies
- run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
+ run: pnpm install
- name: Download PR number
uses: dawidd6/action-download-artifact@v2