-
Notifications
You must be signed in to change notification settings - Fork 184
56 lines (53 loc) · 1.57 KB
/
continues_integration.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
56
name: Continues Integration
on: [push]
jobs:
buildAndLint:
name: Build & Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 16.10
uses: actions/setup-node@v3
with:
node-version: "16.10"
- name: Install
run: yarn install --frozen-lockfile --ignore-optional
- name: Verify that the plugin metadta is correct
run: yarn verify-package-metadata
- name: Prettier validate
run: yarn prettier:check
- name: Lint
run: yarn lint
- name: Get Chat Version
id: get_chat_version
run: echo "version=$(cat ./.chatversion)" >> $GITHUB_ENV
- name: Checkout Chat Application Repository
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: "codota/tabnine-chat-app"
version: "tags/${{ env.version }}"
file: "build.tar.gz"
token: ${{ secrets.GH_BUILDER_TOKEN }}
- name: Extract Chat App Build
run: |
mkdir -p ./chat
tar -xzvf ./build.tar.gz -C ./chat
- name: Package
run: yarn vsce:package
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 16.10
uses: actions/setup-node@v3
with:
node-version: "16.10"
- name: Install
run: yarn install --frozen-lockfile --ignore-optional
- run: xvfb-run -a yarn test
if: runner.os == 'Linux'
- run: yarn test
if: runner.os != 'Linux'