1
0
mirror of https://github.com/google/fonts.git synced 2024-12-16 12:18:03 +03:00
fonts/.github/workflows/test.yaml
Marc Foley 5f3675b809
Migrate CI to Github Actions (#2466)
* Migrate CI to Github Actions

Replaces current Travis setup.

Benefits include:
- Faster
- Multiple families can now be included in a single PR
- PRs can come from forked repos

Fixes #2463

* Restore travis file temporarily
2020-05-29 13:38:40 +01:00

43 lines
1.1 KiB
YAML

name: Google Fonts QA
on: [pull_request]
jobs:
build:
name: Build Google Fonts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup python
uses: actions/setup-python@v1
with:
# TODO use build matrix?
python-version: 3.8
- name: Install dependencies
run: |
sudo apt install libharfbuzz-dev libharfbuzz-bin libfreetype6-dev libglib2.0-dev libcairo2-dev
python -m pip install --upgrade pip
pip install gftools[qa]
- name: Check fonts
env:
GF_API_KEY: ${{ secrets.GF_API_KEY }}
BSTACK_ACCESS_KEY: ${{ secrets.BSTACK_ACCESS_KEY }}
BSTACK_USERNAME: ${{ secrets.BSTACK_USERNAME }}
run: |
sh .ci/run_gh.sh
- name: Check file existence
id: check_files
uses: andstor/file-existence-action@v1
with:
files: "out"
- name: Upload check results
if: steps.check_files.outputs.files_exists == 'true'
uses: actions/upload-artifact@v1
with:
name: qa
path: out/