name: Main on: push jobs: ci-ruby: name: CI Ruby runs-on: ubuntu-latest steps: - run: sudo apt-get update - run: sudo apt-get install libsqlite3-dev - uses: actions/checkout@master - uses: ruby/setup-ruby@v1 with: ruby-version: 2.7 - uses: actions/cache@v1 with: path: vendor/bundle key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} restore-keys: | ${{ runner.os }}-gems- - run: bundle config path vendor/bundle - run: bundle install --jobs 4 --retry 3 - run: bundle exec bundle audit --update - run: bundle exec rubocop --parallel - run: bundle exec rake test env: CI: true ci-ts: name: CI TypeScript runs-on: ubuntu-latest steps: - uses: actions/checkout@master - uses: actions/setup-node@v1 with: node-version: 11.x - id: yarn-cache run: echo "::set-output name=directory::$(yarn cache dir)" - uses: actions/cache@v1 with: path: ${{ steps.yarn-cache.outputs.directory }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- - run: yarn install --frozen-lockfile - run: yarn lint - run: yarn test env: CI: true