1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-08 02:33:54 +02:00

Add GitHub Actions CI workflow

This commit is contained in:
Owen Voke 2020-06-09 11:10:15 +01:00 committed by Marco Bonelli
parent c3699ce546
commit bcab713a65

27
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: CI
on: ['push', 'pull_request']
jobs:
ci:
runs-on: ubuntu-latest
name: CI
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install npm dependencies
run: npm ci
- name: Test
run: npm test
- name: Build
run: bash scripts/build.sh
- name: Deploy
run: bash scripts/deploy.sh
if: github.repository == 'tldr-pages/tldr' && github.branch == 'master'