Skip to content

Commit

Permalink
Merge pull request #10 from rherrmannr/8-add-cicd
Browse files Browse the repository at this point in the history
add github actions
  • Loading branch information
rherrmannr authored Jun 21, 2024
2 parents 4558957 + e42d95d commit cbf02da
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Extension Actions

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-version }}-
- name: Install dependencies
run: npm install

- name: Compile
run: npm run compile

- name: Run lint
run: npm run lint

- name: Run Unittests
run: xvfb-run --auto-servernum npm run test

# - name: Run coverage
# run: npm run coverage

0 comments on commit cbf02da

Please sign in to comment.