Skip to content

Commit 4b3943a

Browse files
committed
fixing space
1 parent 706e51f commit 4b3943a

File tree

1 file changed

+99
-99
lines changed

1 file changed

+99
-99
lines changed
+99-99
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,107 @@
11
name: Daily Build and Test
22

33
on:
4-
schedule:
5-
- cron: '0 0 * * *'
6-
workflow_dispatch:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
77

88
jobs:
9-
runs-on: ubuntu-latest
10-
11-
steps:
12-
- name: Checkout Repository
13-
uses: actions/checkout@v2
14-
15-
- name: Set up Node.js
16-
uses: actions/setup-node@v2
17-
with:
18-
node-version: '18'
19-
20-
- name: Set up xvfb
21-
run: |
22-
sudo apt-get update
23-
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libkrb5-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
24-
sudo cp build/xvfb.init /etc/init.d/xvfb
25-
sudo chmod +x /etc/init.d/xvfb
26-
sudo update-rc.d xvfb defaults
27-
sudo service xvfb start
28-
29-
- name: Install tools
30-
run: |
31-
echo "Installing Yarn"
32-
npm install --global [email protected]
33-
echo "Installing Gulp CLI"
34-
npm install --global [email protected]
35-
echo "Installing VSCE"
36-
npm install --global [email protected]
37-
echo "Installing gulp"
38-
npm install --global [email protected]
39-
npm install gulp
40-
npm link gulp
41-
42-
- name: Install extension dependencies
43-
run: |
44-
yarn --frozen-lockfile
45-
46-
- name: Install playwright dependencies
47-
run: |
48-
npx playwright install --with-deps
49-
50-
- name: Build extension
51-
run: |
52-
yarn build
53-
54-
- name: Run lint
55-
run: |
56-
yarn lint
57-
58-
- name: Run tests
59-
run: |
60-
DISPLAY=:10 yarn test --coverage --log
61-
62-
- name: Publish test
63-
uses: EnricoMi/publish-unit-test-result-action@v2
64-
if: always()
65-
with:
66-
files: |
67-
./test-reports/**/*.xml
68-
69-
- name: Setup environment for smoke tests
70-
run: |
71-
echo "Setting up environment for smoke tests"
72-
echo "PASSWORD=$(LC_ALL=C tr -dc 'A-Za-z0-9!?%=' < /dev/urandom | head -c 16)$(LC_ALL=C tr -dc '@^#' < /dev/urandom | head -c 1)" >> $GITHUB_ENV
73-
74-
- name: Install mssql
75-
run: |
76-
sudo cp build/mssql.init /etc/init.d/mssql-server
77-
sudo chmod +x /etc/init.d/mssql-server
78-
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
79-
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/22.04/mssql-server-2022.list)"
80-
sudo apt-get update
81-
sudo apt-get install -y mssql-server
82-
sudo ACCEPT_EULA='Y' MSSQL_PID='Developer' MSSQL_SA_PASSWORD=${{ env.PASSWORD }} /opt/mssql/bin/mssql-conf setup || true
83-
84-
- name: Start mssql
85-
run: |
86-
sudo service mssql-server start
87-
88-
- name: Run smoke tests
89-
run: |
90-
VS_CODE_VERSION=stable
91-
SERVER_NAME=localhost
92-
AUTHENTICATION_TYPE="SQL Login"
93-
USER_NAME=sa
94-
PASSWORD=${{ env.PASSWORD }}
95-
SAVE_PASSWORD=No
96-
PROFILE_NAME=test-server
97-
DISPLAY=:10 yarn smoketest
98-
99-
- name: Publish smoke test
100-
uses: EnricoMi/publish-unit-test-result-action@v2
101-
if: always()
102-
with:
103-
files: |
104-
./test-reports/**/*.trx
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v2
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: '18'
19+
20+
- name: Set up xvfb
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libkrb5-dev libxss1 dbus xvfb libgtk-3-0 libgbm1
24+
sudo cp build/xvfb.init /etc/init.d/xvfb
25+
sudo chmod +x /etc/init.d/xvfb
26+
sudo update-rc.d xvfb defaults
27+
sudo service xvfb start
28+
29+
- name: Install tools
30+
run: |
31+
echo "Installing Yarn"
32+
npm install --global [email protected]
33+
echo "Installing Gulp CLI"
34+
npm install --global [email protected]
35+
echo "Installing VSCE"
36+
npm install --global [email protected]
37+
echo "Installing gulp"
38+
npm install --global [email protected]
39+
npm install gulp
40+
npm link gulp
41+
42+
- name: Install extension dependencies
43+
run: |
44+
yarn --frozen-lockfile
45+
46+
- name: Install playwright dependencies
47+
run: |
48+
npx playwright install --with-deps
49+
50+
- name: Build extension
51+
run: |
52+
yarn build
53+
54+
- name: Run lint
55+
run: |
56+
yarn lint
57+
58+
- name: Run tests
59+
run: |
60+
DISPLAY=:10 yarn test --coverage --log
61+
62+
- name: Publish test
63+
uses: EnricoMi/publish-unit-test-result-action@v2
64+
if: always()
65+
with:
66+
files: |
67+
./test-reports/**/*.xml
68+
69+
- name: Setup environment for smoke tests
70+
run: |
71+
echo "Setting up environment for smoke tests"
72+
echo "PASSWORD=$(LC_ALL=C tr -dc 'A-Za-z0-9!?%=' < /dev/urandom | head -c 16)$(LC_ALL=C tr -dc '@^#' < /dev/urandom | head -c 1)" >> $GITHUB_ENV
73+
74+
- name: Install mssql
75+
run: |
76+
sudo cp build/mssql.init /etc/init.d/mssql-server
77+
sudo chmod +x /etc/init.d/mssql-server
78+
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
79+
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/22.04/mssql-server-2022.list)"
80+
sudo apt-get update
81+
sudo apt-get install -y mssql-server
82+
sudo ACCEPT_EULA='Y' MSSQL_PID='Developer' MSSQL_SA_PASSWORD=${{ env.PASSWORD }} /opt/mssql/bin/mssql-conf setup || true
83+
84+
- name: Start mssql
85+
run: |
86+
sudo service mssql-server start
87+
88+
- name: Run smoke tests
89+
run: |
90+
VS_CODE_VERSION=stable
91+
SERVER_NAME=localhost
92+
AUTHENTICATION_TYPE="SQL Login"
93+
USER_NAME=sa
94+
PASSWORD=${{ env.PASSWORD }}
95+
SAVE_PASSWORD=No
96+
PROFILE_NAME=test-server
97+
DISPLAY=:10 yarn smoketest
98+
99+
- name: Publish smoke test
100+
uses: EnricoMi/publish-unit-test-result-action@v2
101+
if: always()
102+
with:
103+
files: |
104+
./test-reports/**/*.trx
105105
106106
107107

0 commit comments

Comments
 (0)