Commit 41e94eb 1 parent 3eb8cab commit 41e94eb Copy full SHA for 41e94eb
File tree 3 files changed +65
-3
lines changed
3 files changed +65
-3
lines changed Original file line number Diff line number Diff line change
1
+ # The only reason this file exists is so that the `badge` in the README of the
2
+ # currently published version isn't broken (https://www.npmjs.com/package/tailwindcss).
3
+ #
4
+ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
5
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
6
+
7
+ name : CI — Stable
8
+
9
+ on :
10
+ push :
11
+ branches : [master]
12
+ pull_request :
13
+ branches : [master, 3.3, 3.4]
14
+
15
+ permissions :
16
+ contents : read
17
+
18
+ env :
19
+ CI : true
20
+ TURBO_TOKEN : ${{ secrets.TURBO_TOKEN }}
21
+ TURBO_TEAM : ${{ secrets.TURBO_TEAM }}
22
+ CACHE_PREFIX : stable
23
+
24
+ jobs :
25
+ build :
26
+ runs-on : ubuntu-latest
27
+
28
+ strategy :
29
+ matrix :
30
+ node-version : [14, 18]
31
+
32
+ steps :
33
+ - uses : actions/checkout@v3
34
+ - name : Use Node.js ${{ matrix.node-version }}
35
+ uses : actions/setup-node@v3
36
+ with :
37
+ node-version : ${{ matrix.node-version }}
38
+
39
+ - name : Use the `stable` engine
40
+ run : |
41
+ node ./scripts/swap-engines.js
42
+
43
+ - name : Cache node_modules
44
+ uses : actions/cache@v3
45
+ with :
46
+ path : node_modules
47
+ key : ${{ runner.os }}-${{ matrix.node-version }}-${{ env.CACHE_PREFIX }}-node_modules-${{ hashFiles('**/package-lock.json') }}
48
+
49
+ - name : Install dependencies
50
+ run : npm install
51
+
52
+ - name : Build Tailwind CSS
53
+ run : npm run build
54
+
55
+ - name : Test
56
+ run : |
57
+ npm run test || \
58
+ npm run test || \
59
+ npm run test || exit 1
60
+
61
+ - name : Lint
62
+ run : npm run style
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Release
3
3
on :
4
4
release :
5
5
types : [published]
6
+ workflow_dispatch :
6
7
7
8
permissions :
8
9
contents : read
Original file line number Diff line number Diff line change 12
12
A utility-first CSS framework for rapidly building custom user interfaces.
13
13
</p >
14
14
15
-
16
15
<p align =" center " >
17
- <a href="https://github.com/tailwindlabs/tailwindcss/actions"><img src="https://img.shields.io/github/actions/workflow/status/tailwindlabs/tailwindcss/ci-stable .yml?branch=master" alt="Build Status"></a>
16
+ <a href="https://github.com/tailwindlabs/tailwindcss/actions"><img src="https://img.shields.io/github/actions/workflow/status/tailwindlabs/tailwindcss/ci.yml?branch=master" alt="Build Status"></a>
18
17
<a href="https://www.npmjs.com/package/tailwindcss"><img src="https://img.shields.io/npm/dt/tailwindcss.svg" alt="Total Downloads"></a>
19
18
<a href="https://github.com/tailwindcss/tailwindcss/releases"><img src="https://img.shields.io/npm/v/tailwindcss.svg" alt="Latest Release"></a>
20
19
<a href="https://github.com/tailwindcss/tailwindcss/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/tailwindcss.svg" alt="License"></a>
21
20
</p >
22
21
23
- ------
22
+ ---
24
23
25
24
## Documentation
26
25
You can’t perform that action at this time.
0 commit comments