-
-
Notifications
You must be signed in to change notification settings - Fork 30
60 lines (56 loc) · 1.85 KB
/
main.yaml
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
57
58
59
60
name: CI
on: [push, pull_request]
jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest]
gcc_v: [11]
node-version: [20.x]
fail-fast: false
runs-on: ${{ matrix.os }}
env:
FC: gfortran-${{ matrix.gcc_v }}
CC: gcc-${{ matrix.gcc_v }}
CXX: g++-${{ matrix.gcc_v }}
GCC_V: ${{ matrix.gcc_v }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install GCC compilers Linux
if: contains( matrix.os, 'ubuntu')
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-${GCC_V} g++-${GCC_V} gfortran-${GCC_V}
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
--slave /usr/bin/g++ g++ /usr/bin/g++-${GCC_V} \
--slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}
- name: Installing Extension
run: npm ci
- name: Compile
run: npm run compile
- name: Linting
run: npm run lint
- name: Test Syntax Highlighting
run: npm run test:grammar
- name: Test Unittests
uses: coactions/setup-xvfb@v1
with:
run: |
npm run pretest
npm run test:integration
# This will not fail the job if tests fail so we have to npm test separately
# - name: Coverage report
# uses: coactions/setup-xvfb@v1
# with:
# run: npm run coverage
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: true