forked from prettier/prettier
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.31 KB
/
bundler-friendly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Bundler_Friendly
on:
schedule:
# “At 00:00 on Sunday.” https://crontab.guru/#0_0_*_*_SUN
- cron: "0 0 * * SUN"
pull_request:
paths:
- "scripts/tools/bundle-test/**"
# This workflow file
- ".github/workflows/bundler-friendly.yml"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
if: github.event_name != 'schedule' || github.repository == 'prettier/prettier'
name: Build
uses: ./.github/workflows/_build.yml
webpack:
if: github.event_name != 'schedule' || github.repository == 'prettier/prettier'
name: Bundle Prettier with webpack
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v4.1.0
- name: Setup Node.js
uses: actions/setup-node@v3.8.1
with:
cache: "yarn"
- name: Install Dependencies
run: yarn install --immutable
- name: Download Artifact
uses: actions/download-artifact@v3.0.2
with:
name: dist
path: dist
- name: Install Dependencies
run: yarn install --immutable
working-directory: scripts/tools/bundle-test
- name: Test
run: yarn test
working-directory: scripts/tools/bundle-test