This commit is contained in:
Aravinth Manivannan 2021-12-07 19:01:45 +05:30
parent c9ba1a9e55
commit 3be876cc2e
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

55
.github/workflows/linux.yml vendored Normal file
View file

@ -0,0 +1,55 @@
name: CI (Linux)
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches-ignore:
- "!gh-pages"
jobs:
build_and_test:
name: x86_64-unknown-linux-gnu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ⚡ Cache
uses: actions/cache@v2
with:
path: |
node_modules
key: ${{ runner.os }}-cargo-${{ hashFiles('**/yarn.lock') }}
- uses: actions/setup-node@v2
with:
node-version: "17.x"
- name: Install JavaScript Dependencies
run: yarn install
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: generate TS documentation
run: yarn doc
- name: Deploy Docuemntation to GitHub Pages
if: github.repository == 'mCaptcha/pow_sha256-polyfill' && github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/
- name: Upload to Codecov
if: github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}