test: add initial set of tests and new workflow that would run them o… #3
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: branch-push | |
on: | |
push: | |
branches: | |
- "**" # Match all branches | |
paths-ignore: | |
- "**.md" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
# Setup | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "18" | |
registry-url: "https://registry.npmjs.org" | |
- name: Reconfigure git | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "Barchart Builder" | |
git config --global url.https://${{ secrets.API_TOKEN_GITHUB }}@github.com/.insteadOf ssh://[email protected]/ | |
- name: Install dependencies | |
run: | | |
yarn | |
yarn generate:version | |
- name: Run tests | |
run: yarn test |