Skip to content

Bump version

Bump version #188

Workflow file for this run

name: CI
on:
push:
branches-ignore:
- 'master'
jobs:
fixups:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Check if there are fixup commits
run: git log --pretty=format:%s origin/master.. | xargs | grep -v fixup
version:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check version bump
run: git diff --diff-filter=M origin/master -- "package.json" | grep "version"
changelog:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check changelog update
run: git diff --name-only origin/master -- | grep CHANGELOG.md
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 16.16.0
- name: Install yarn
run: npm install --global yarn@1.22.19
- name: Install dependencies
run: yarn
- name: Lint
run: npx eslint@^5.1.0 .
- name: Run tests
env:
APIARY_API_KEY: ${{ secrets.APIARY_API_KEY }}
APIARY_API_NAME: ${{ secrets.APIARY_API_NAME }}
CI: GITHUB_ACTIONS
run: ./test.sh