Files
snk/.github/workflows/main.yml
platane e637604df1 🚀 benchmark
2020-07-21 18:15:41 +02:00

60 lines
1.4 KiB
YAML

name: main
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: sudo apt-get install gifsicle graphicsmagick
- uses: actions/checkout@v1
- uses: actions/setup-node@v1.4.2
with:
node-version: 14
- uses: bahmutov/npm-install@v1.4.1
- run: yarn type
- run: yarn lint
- run: yarn test --ci
- run: yarn build:action
test-benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1.4.2
with:
node-version: 14
- uses: bahmutov/npm-install@v1.4.1
- run: ( cd packages/compute ; yarn benchmark )
test-action:
runs-on: ubuntu-latest
steps:
- run: mkdir dist
- name: generate-snake-game-from-github-contribution-grid
id: snake-gif
uses: Platane/snk@master
with:
github_user_name: platane
gif_out_path: dist/github-contribution-grid-snake.gif
- name: ensure the generated file exists
run: |
ls -l ${{ steps.snake-gif.outputs.gif_out_path }}
test -f ${{ steps.snake-gif.outputs.gif_out_path }}
- uses: crazy-max/ghaction-github-pages@v2.1.1
with:
target_branch: output
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN_GH_PAGES }}