Skip to content

Commit

Permalink
chore: fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinaldy Rafli committed Sep 18, 2021
1 parent caf21fa commit fd70ea0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 62 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/release.yml

This file was deleted.

46 changes: 23 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,38 @@ on:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node: [12, 14, 16]
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org/
node-version: 16

- name: Setup cache
uses: actions/cache@v2
id: pnpm-cache
- name: Install dependencies
run: npm install

- name: ESLint Check
run: npx eslint --ext .js,.ts --ignore-path .gitignore .

- name: Prettier Check
run: npx prettier --check --ignore-path .gitignore .

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
path: ${{ (runner.os == 'Windows' && 'D:\.pnpm-store') || '~/.pnpm-store' }}
key: ${{ runner.os }}-${{ matrix.node }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node }}-pnpm-
languages: javascript

- name: Install dependencies
run: |
npm i -g pnpm @antfu/ni
nci
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

- name: Build Test
run: npm run build

- name: Run test
run: nr test --if-present
- name: Test
run: npm run test

- name: Run build
run: nr build
- uses: codecov/codecov-action@v2

0 comments on commit fd70ea0

Please sign in to comment.