Skip to content

Commit

Permalink
chore(ci): Set up GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
the-spyke committed Dec 31, 2020
1 parent dff6da5 commit 46d241a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on: [push, pull_request]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 10
- name: yarn install
# "--frozen-lockfile" doesn't work, see https://github.com/yarnpkg/yarn/issues/5840
run: |
CKSUM_BEFORE=$(cksum yarn.lock)
yarn install
CKSUM_AFTER=$(cksum yarn.lock)
if [[ $CKSUM_BEFORE != $CKSUM_AFTER ]]; then
echo "yarn.lock is outdated"
exit 1
fi
- run: yarn lint
- run: yarn test --ci --runInBand
env:
NODE_ENV: test
- run: yarn dist
env:
NODE_ENV: production
- uses: actions/upload-artifact@v2
with:
name: ${{ format('spyke-conventional-changelog-preset_{0}-{1}', github.run_number, github.sha) }}
path: "dist/*"

0 comments on commit 46d241a

Please sign in to comment.