Mapping new tags #502
This file contains hidden or 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: Test | |
| on: | |
| push: | |
| branches: [ master, dev ] | |
| pull_request: | |
| branches: [ master, dev ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install DuckDB | |
| run: | | |
| wget https://install.duckdb.org/v1.4.3/libduckdb-linux-amd64.zip && | |
| unzip libduckdb-linux-amd64.zip -d libduckdb && | |
| sudo mv libduckdb/duckdb.* /usr/local/include/ && | |
| sudo mv libduckdb/libduckdb.so /usr/local/lib && | |
| sudo ldconfig && | |
| rm -fr libduckdb-linux-amd64.zip libduckdb | |
| - uses: actions/checkout@v3 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.2' | |
| bundler-cache: true | |
| # - name: Setup Tapioca cache | |
| # id: cache-tapioca | |
| # uses: actions/cache@v5 | |
| # with: | |
| # path: sorbet | |
| # key: ${{ runner.os }}-${{ hashFiles('Gemfile.lock') }} | |
| # - name: Init Tapioca | |
| # if: steps.cache-tapioca.outputs.cache-hit != 'true' | |
| # run: | | |
| # bundle exec tapioca init && \ | |
| # bundle exec srb rbi suggest-typed | |
| - name: Install httpfs extension for DuckDB | |
| run: | | |
| bundle exec ruby -e "require 'duckdb'; DuckDB::Database.open.connect.query('INSTALL httpfs');" | |
| - name: Run rubocop | |
| run: bundle exec rubocop --parallel -c .rubocop.yml | |
| # - name: Run typecheck | |
| # run: | | |
| # bundle exec rake rails_rbi:routes && \ | |
| # bundle exec tapioca dsl && \ | |
| # bundle exec srb typecheck -q | |
| # - name: Run security checks | |
| # run: | | |
| # bin/bundler-audit --update | |
| # bin/brakeman -q -w2 | |
| - name: Run tests | |
| run: bundle exec rake test | |
| docker: | |
| runs-on: ubuntu-latest | |
| needs: [test] | |
| if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| steps: | |
| - name: Docker Build and Push | |
| uses: cartoway/docker-compose-build-push-action@main | |
| with: | |
| registry_password: ${{ secrets.GITHUB_TOKEN }} |