Skip to content

Add coverage for new features #42

Add coverage for new features

Add coverage for new features #42

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy
on:
push:
branches: [ release ]
jobs:
deploy:
environment: Deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- run: yarn install
- run: rm -f src/data/tracks.json src/data/cars.json src/data/season.json src/data/contributors.json
- run: yarn scrapeData
env:
IWP_USERNAME: ${{ secrets.IWP_USERNAME }}
IWP_PASSWORD: ${{ secrets.IWP_PASSWORD }}
- run: yarn test
- run: yarn debugRaces
- run: yarn build
env:
NODE_ENV: production
- run: bundle exec s3_website push
env:
S3_ID: ${{ secrets.S3_ID }}
S3_SECRET: ${{ secrets.S3_SECRET }}