Skip to content

Commit

Permalink
Update push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
altaywtf committed Jun 4, 2023
1 parent 145e57e commit 20cf649
Showing 1 changed file with 33 additions and 17 deletions.
50 changes: 33 additions & 17 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
name: push
on:
push:
branches:
- master
pull_request:
name: Lint, test, and build the package

on: [push]

jobs:
test:
runs-on: ubuntu-latest
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['18.16.0']
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Checkout repo
uses: actions/checkout@v3

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: '12.x'
- run: yarn install
- run: yarn lint
- run: yarn build
- run: yarn coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
node-version: ${{ matrix.node }}

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1

- name: Lint
run: yarn lint

- name: Test
run: yarn test --coverage

- name: Coveralls
uses: coverallsapp/github-action@v2

- name: Build
run: yarn build

0 comments on commit 20cf649

Please sign in to comment.