From bcab713a6556d8b9cb9ca794785668ba5b09769d Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Tue, 9 Jun 2020 11:10:15 +0100 Subject: [PATCH] Add GitHub Actions CI workflow --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..3fdcea156 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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'