Skip to content

Commit

Permalink
Create pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jun 25, 2022
1 parent c680026 commit 2a15291
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/pr.yml
@@ -0,0 +1,47 @@
name: Node PR CI
on:
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 16.x
- 18.x
steps:
- uses: actions/checkout@v2

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

- name: Install
run: npm install

- name: Lint
run: npm run lint

- uses: actions-rs/toolchain@v1
with:
toolchain: stable

- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Typos Install
run: cargo install typos-cli || echo 'already installed'

- name: Typos
run: typos

- name: Coverage
run: npm run coverage

0 comments on commit 2a15291

Please sign in to comment.