Skip to content

Commit 1dd6d1c

Browse files
authored
Format ci.yml (#193)
1 parent 3a812a9 commit 1dd6d1c

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

.github/workflows/ci.yml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010
test:
@@ -50,55 +50,55 @@ jobs:
5050
runs-on: ${{matrix.os}}
5151

5252
steps:
53-
# needed for Windows testing
54-
- name: Set git to use LF
55-
run: |
56-
git config --global core.autocrlf false
57-
git config --global core.eol lf
58-
59-
- uses: actions/checkout@v2.3.4
60-
61-
- name: Cache OCaml's opam
62-
uses: actions/cache@v2.1.5
63-
with:
64-
path: ~/.opam
65-
key: ${{matrix.os}}-reanalyze-v2
66-
67-
- name: Use OCaml
68-
uses: ocaml/setup-ocaml@v2
69-
with:
70-
ocaml-compiler: ${{matrix.ocaml-compiler}}
71-
72-
- name: Use Node.js
73-
uses: actions/setup-node@v2.1.5
74-
with:
75-
node-version: 14.4.0
76-
77-
- run: npm ci
78-
79-
- run: opam install dune cppo
80-
81-
- name: Build
82-
run: ${{matrix.build}}
83-
84-
- name: Test
85-
if: matrix.target == 'rescript'
86-
run: ${{matrix.test}}
87-
88-
# Also avoids artifacts upload permission loss:
89-
# https://github.com/actions/upload-artifact/tree/ee69f02b3dfdecd58bb31b4d133da38ba6fe3700#permission-loss
90-
- name: Compress files
91-
if: matrix.target == 'rescript'
92-
run: |
93-
mkdir ${{matrix.artifact-folder}}
94-
cp _build/default/src/Reanalyze.exe reanalyze.exe
95-
tar -cvf binary.tar reanalyze.exe
96-
97-
- uses: actions/upload-artifact@v2
98-
if: matrix.target == 'rescript'
99-
with:
100-
name: ${{matrix.os}}
101-
path: binary.tar
53+
# needed for Windows testing
54+
- name: Set git to use LF
55+
run: |
56+
git config --global core.autocrlf false
57+
git config --global core.eol lf
58+
59+
- uses: actions/checkout@v2.3.4
60+
61+
- name: Cache OCaml's opam
62+
uses: actions/cache@v2.1.5
63+
with:
64+
path: ~/.opam
65+
key: ${{matrix.os}}-reanalyze-v2
66+
67+
- name: Use OCaml
68+
uses: ocaml/setup-ocaml@v2
69+
with:
70+
ocaml-compiler: ${{matrix.ocaml-compiler}}
71+
72+
- name: Use Node.js
73+
uses: actions/setup-node@v2.1.5
74+
with:
75+
node-version: 14.4.0
76+
77+
- run: npm ci
78+
79+
- run: opam install dune cppo
80+
81+
- name: Build
82+
run: ${{matrix.build}}
83+
84+
- name: Test
85+
if: matrix.target == 'rescript'
86+
run: ${{matrix.test}}
87+
88+
# Also avoids artifacts upload permission loss:
89+
# https://github.com/actions/upload-artifact/tree/ee69f02b3dfdecd58bb31b4d133da38ba6fe3700#permission-loss
90+
- name: Compress files
91+
if: matrix.target == 'rescript'
92+
run: |
93+
mkdir ${{matrix.artifact-folder}}
94+
cp _build/default/src/Reanalyze.exe reanalyze.exe
95+
tar -cvf binary.tar reanalyze.exe
96+
97+
- uses: actions/upload-artifact@v2
98+
if: matrix.target == 'rescript'
99+
with:
100+
name: ${{matrix.os}}
101+
path: binary.tar
102102

103103
npm_pack:
104104
needs: test
@@ -113,7 +113,7 @@ jobs:
113113
tar xf macos-latest/binary.tar -C dist/vendor-darwin
114114
tar xf ubuntu-latest/binary.tar -C dist/vendor-linux
115115
tar xf windows-latest/binary.tar -C dist/vendor-win32
116-
116+
117117
# Add the correct package.json / README / etc to dist
118118
node scripts/prepare_release.js
119119

0 commit comments

Comments
 (0)