forked from Gruntfuggly/todo-tree
-
-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (43 loc) · 1.3 KB
/
Copy pathci.yml
File metadata and controls
54 lines (43 loc) · 1.3 KB
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
name: CI
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test-build:
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Check out repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package-lock.json
- name: Cache upstream parity clone
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .tools/upstream-todo-tree
key: upstream-todo-tree-7761bd02406a5c5f5bc8da944a561eb3c12a48df
- name: Install dependencies
run: npm ci
- name: Run test suite
run: npm test
- name: Build production bundle
run: npm run vscode:prepublish
- name: Build smoke-test VSIX
run: |
rm -rf artifacts/vsix
SKIP_PREPUBLISH=1 node scripts/release/build-vsix.mjs linux-x64