feat: add namespace
option to generate .d.ts
files
#78
Workflow file for this run
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: build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/[email protected] | |
with: | |
version: 7.4.1 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'pnpm' | |
node-version: 16 | |
- run: pnpm install --frozen-lockfile | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.0" | |
bundler-cache: true | |
- name: Rubocop | |
run: bin/rubocop | |
- name: Clean Types | |
run: pnpm clean | |
- name: Run Migrations | |
run: pnpm migrate | |
- name: Generate Types | |
run: pnpm gen | |
- name: Type Check | |
run: pnpm tsc | |
- name: ESLint | |
run: pnpm lint | |
test: | |
name: test | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' || matrix.experimental }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
ruby: [ | |
"3.0", | |
"3.1", | |
"3.2", | |
] | |
gemfile: [ | |
"Gemfile-rails.6.1.x", | |
"Gemfile-rails.7.0.x", | |
] | |
experimental: [false] | |
# include: | |
# - ruby: "3.1" | |
# os: ubuntu-latest | |
# gemfile: Gemfile-rails-edge | |
# experimental: true | |
env: | |
BUNDLE_JOBS: 4 | |
BUNDLE_RETRY: 3 | |
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Setup Code Climate test-reporter | |
run: | | |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | |
chmod +x ./cc-test-reporter | |
./cc-test-reporter before-build | |
- name: Run Migrations | |
run: cd playground/vanilla && bin/rails db:prepare | |
- name: Ruby Specs | |
run: bin/rspec | |
- name: Upload code coverage to Code Climate | |
if: ${{ contains(github.ref, 'main') }} | |
run: | | |
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}" | |
./cc-test-reporter after-build -r ${{secrets.CC_TEST_REPORTER_ID}} |