Skip to content

Commit

Permalink
chore: rename github action and add badge
Browse files Browse the repository at this point in the history
  • Loading branch information
dominickolbe committed Aug 17, 2021
1 parent 5d6f52d commit fb2736b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/build-test.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Build and test
name: Test

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

jobs:
test:
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
name: Test on Node.js ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -17,19 +17,16 @@ jobs:
os: [ubuntu-latest]

steps:
- name: Check out repository
- name: Checkout
uses: actions/checkout@v2

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

- name: Install, build and test
- name: Install dependencies, build and test
run: |
yarn install --frozen-lockfile
yarn frontend:build
yarn test
env:
CI: true
yarn test
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
![Node CI](https://github.com/dominickolbe/pubg/workflows/Node%20CI/badge.svg?branch=master)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/dominickolbe/pubg/Test?label=test)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/dominickolbe/pubg/Release?label=release)
![GitHub package.json version](https://img.shields.io/github/package-json/v/dominickolbe/pubg)

<p align="center">
Expand Down

0 comments on commit fb2736b

Please sign in to comment.