Don't include tests in build output #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static analysis | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
jobs: | |
build: | |
name: Validate emojibase.json | |
runs-on: ubuntu-latest | |
concurrency: | |
# When running on main, use the sha to allow all runs of this workflow to run concurrently. | |
# Otherwise only allow a single run of this workflow on each branch, automatically cancelling older runs. | |
group: ${{ github.workflow }} | |
cancel-in-progress: ${{ github.ref_name != 'main' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: "yarn" | |
- name: Setup | |
run: "./scripts/setup.sh" | |
- name: Gerenate json | |
run: "./scripts/generateJson.sh" | |
- name: Validate it matches source | |
run: "git diff --exit-code" |