Skip to content

Commit

Permalink
for now use 1.81
Browse files Browse the repository at this point in the history
  • Loading branch information
nudded committed Oct 31, 2024
1 parent 04efbe6 commit fa3e982
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/migrations-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable && rustup default stable
run: rustup default 1.81
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pronto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust
run: rustup default 1.81
- name: Setup Ruby
uses: ruby/setup-ruby@v1
- name: Setup Rubocop
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run Spec
on:
push:
branches:
- "main"
- 'main'
pull_request:
types: [opened, synchronize, reopened]
jobs:
Expand All @@ -13,7 +13,7 @@ jobs:
postgres:
image: postgres:14-alpine
ports:
- "5432:5432"
- '5432:5432'
env:
POSTGRES_DB: lago
POSTGRES_USER: lago
Expand All @@ -30,8 +30,8 @@ jobs:
env:
RAILS_ENV: test
DATABASE_URL: "postgres://lago:lago@localhost:5432/lago"
LAGO_REDIS_CACHE_URL: "redis://localhost:6379"
DATABASE_URL: 'postgres://lago:lago@localhost:5432/lago'
LAGO_REDIS_CACHE_URL: 'redis://localhost:6379'
RAILS_MASTER_KEY: ${{ secrets.RAILS_TEST_KEY }}
SECRET_KEY_BASE: ${{ secrets.SECRET_KEY_BASE }}
LAGO_API_URL: https://api.lago.dev
Expand All @@ -42,16 +42,18 @@ jobs:
LAGO_CLICKHOUSE_MIGRATIONS_ENABLED: true
LAGO_CLICKHOUSE_HOST: localhost
LAGO_CLICKHOUSE_DATABASE: default
LAGO_CLICKHOUSE_USERNAME: ""
LAGO_CLICKHOUSE_PASSWORD: ""
LAGO_CLICKHOUSE_USERNAME: ''
LAGO_CLICKHOUSE_PASSWORD: ''

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
run: rustup default 1.81
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3.4"
ruby-version: '3.3.4'
bundler-cache: true
- name: Start Clickhouse database
run: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COPY ./Gemfile /app/Gemfile
COPY ./Gemfile.lock /app/Gemfile.lock

RUN apt update -qq && apt install nodejs curl build-essential git pkg-config libpq-dev libclang-dev curl -y && \
curl https://sh.rustup.rs -sSf | bash -s -- -y
curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain 1.81

ENV BUNDLER_VERSION='2.5.5'
ENV PATH="$PATH:/root/.cargo/bin/"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY ./Gemfile.lock /app/Gemfile.lock

RUN apt update -qq && \
apt install nodejs build-essential curl git pkg-config libpq-dev libclang-dev -y && \
curl https://sh.rustup.rs -sSf | bash -s -- -y
curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain 1.81

ENV BUNDLER_VERSION='2.5.5'
ENV PATH="$PATH:/root/.cargo/bin/"
Expand Down

0 comments on commit fa3e982

Please sign in to comment.