Skip to content

Commit

Permalink
ci: 👷 update ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 13, 2024
1 parent 531a0da commit 7b8149f
Showing 1 changed file with 6 additions and 35 deletions.
41 changes: 6 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
- name: Load Node.js latest
uses: actions/setup-node@v2-beta
with:
node-version: '17.x'
node-version: '20.x'

- name: Install all dependencies
run: npm install
run: npm ci

- name: Compile TypeScript and build UMD files
- name: Compile TypeScript and build Library files
run: npm run build

lint:
Expand All @@ -33,48 +33,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4.1.1

- name: Use Node.js latest
uses: actions/setup-node@v2-beta
with:
node-version: '17.x'
node-version: '20.x'

- name: Get cached modules
uses: actions/cache@v2
uses: actions/cache@v3.3.3
with:
path: |
**/node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Run ESLint
run: npm run lint

test-coverage:
name: test-coverage
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js latest
uses: actions/setup-node@v2-beta
with:
node-version: '17.x'

- name: Get cached modules
uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Compile TypeScript and build UMD files
run: npm run build

- name: Build coverage
run: npm run test:coverage

- name: Run codecov
run: node ./node_modules/.bin/codecov

0 comments on commit 7b8149f

Please sign in to comment.