File tree 3 files changed +599
-0
lines changed
3 files changed +599
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Bazel files check
2
+
3
+ permissions : read-all
4
+
5
+ on :
6
+ push :
7
+ branches :
8
+ - master
9
+ paths :
10
+ - ' *.bazel'
11
+ - ' *.bzl'
12
+ pull_request :
13
+ paths :
14
+ - ' *.bazel'
15
+ - ' *.bzl'
16
+
17
+ jobs :
18
+ check :
19
+ name : Validate formatting
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - uses : actions/checkout@v3
23
+
24
+ - name : Setup buildifier
25
+ uses : jbajic/setup-buildifier@v1
26
+ with :
27
+ buildifier-version : ' 7.3.1'
28
+
29
+ - name : Run buildifier
30
+ run : |
31
+ buildifier -mode check -r .
Original file line number Diff line number Diff line change
1
+ # Bazel support is added to enable projects that use Bazel to easily
2
+ # access the test suite, and file groups without having the need to float
3
+ # a patch on top of WPT.
4
+ #
5
+ # In order to iterate over the files inside a subfolder of WPT, we expose
6
+ # the globs in the `tests.bzl` file.
7
+ #
8
+ # In order to format and lint a bazel file, you can use the following command:
9
+ # > buildifier -mode=check BUILD.bazel tests.bzl
10
+ load ("//:tests.bzl" , "directories" )
11
+
12
+ [filegroup (
13
+ name = dir ,
14
+ srcs = glob (["{}/**/*" .format (dir )]),
15
+ visibility = ["//visibility:public" ],
16
+ ) for dir in directories ]
You can’t perform that action at this time.
0 commit comments