Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
alco committed Jun 18, 2024
1 parent 1890df4 commit f360eaf
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 81 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/changesets_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
name: Make a PR or publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/clients_typescript_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
- main
pull_request:
paths:
- 'pnpm-lock.yaml'
- 'clients/typescript/**'
- '!clients/typescript/**.md'
- "pnpm-lock.yaml"
- "clients/typescript/**"
- "!clients/typescript/**.md"

defaults:
run:
Expand All @@ -24,11 +24,11 @@ jobs:
name: Check formatting & linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
Expand All @@ -38,11 +38,11 @@ jobs:
name: Check types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
Expand All @@ -55,11 +55,11 @@ jobs:
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
Expand All @@ -76,11 +76,11 @@ jobs:
needs: [test, check_types, verify_formatting]
if: ${{ github.ref_name == 'main' }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/components_electric_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
Expand All @@ -38,26 +38,26 @@ jobs:
elixir-version: ${{ env.ELIXIR_VERSION }}

- name: Restore dependencies
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: components/electric/deps
key: ${{ runner.os }}-mixdeps-${{ hashFiles('components/electric/**/mix.lock') }}
restore-keys: ${{ runner.os }}-mixdeps-
- name: Restore compiled code
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
components/electric/_build/*/lib
!components/electric/_build/*/lib/electric
key: ${{ runner.os }}-mixbuild-test-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('components/electric/**/mix.lock') }}
- run: mix deps.get && mix deps.compile
- name: Cache dependencies
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: components/electric/deps
key: ${{ runner.os }}-mixdeps-${{ hashFiles('components/electric/**/mix.lock') }}
- name: Save compiled code
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: |
components/electric/_build/*/lib
Expand All @@ -76,7 +76,7 @@ jobs:
run:
working-directory: components/electric
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
Expand All @@ -86,7 +86,7 @@ jobs:
elixir-version: ${{ env.ELIXIR_VERSION }}
- name: Cache dependencies
id: cache-deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: components/electric/deps
key: ${{ runner.os }}-mixdeps-${{ hashFiles('components/electric/**/mix.lock') }}
Expand All @@ -102,7 +102,7 @@ jobs:
env:
MIX_ENV: dev
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
Expand All @@ -113,28 +113,28 @@ jobs:

- name: Cache dependencies
id: cache-deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: components/electric/deps
key: ${{ runner.os }}-mixdeps-${{ hashFiles('components/electric/**/mix.lock') }}
- name: Restore compiled code
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
components/electric/_build/*/lib
!components/electric/_build/*/lib/electric
key: ${{ runner.os }}-mixbuild-dev-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('components/electric/**/mix.lock') }}
- run: mix deps.get && mix deps.compile
- name: Save compiled code
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: |
components/electric/_build/*/lib
!components/electric/_build/*/lib/electric
key: ${{ runner.os }}-mixbuild-dev-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('components/electric/**/mix.lock') }}
- run: mix compile --force --all-warnings --warnings-as-errors
- name: Cache PLT
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: components/electric/_build/*/*.plt
key: ${{ runner.os }}-plt-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ github.ref_name }}
Expand All @@ -145,7 +145,7 @@ jobs:

- name: Cache PLT
if: ${{ always() && steps.dialyzer.outcome != 'cancelled' }}
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: components/electric/_build/*/*.plt
key: ${{ runner.os }}-plt-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ github.ref_name }}
8 changes: 4 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
ELECTRIC_WRITE_TO_PG_MODE: ${{ matrix.write_to_pg_mode }}
HONEYCOMB_API_KEY: ${{ secrets.HONEYCOMB_API_KEY }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
working-directory: components/electric

- name: Cache built lux
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
e2e/lux/bin
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
DIALECT: ${{ matrix.dialect }}
HONEYCOMB_API_KEY: ${{ secrets.HONEYCOMB_API_KEY }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
working-directory: components/electric

- name: Cache built lux
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
e2e/lux/bin
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/generator_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- main
pull_request:
paths:
- 'pnpm-lock.yaml'
- 'generator/**'
- "pnpm-lock.yaml"
- "generator/**"

defaults:
run:
Expand All @@ -18,11 +18,11 @@ jobs:
name: Check formatting & linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
Expand All @@ -32,11 +32,11 @@ jobs:
name: Check types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
Expand All @@ -49,11 +49,11 @@ jobs:
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/satellite_proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ on:
branches:
- main
paths:
- 'protocol/**'
- "protocol/**"
pull_request:
paths:
- 'protocol/**'
- "protocol/**"
workflow_dispatch:

env:
OTP_VERSION: '27.0'
ELIXIR_VERSION: '1.17.0-otp-27'
OTP_VERSION: "27.0"
ELIXIR_VERSION: "1.17.0-otp-27"

jobs:
verify_proto:
name: Check if generated files are up-to-date
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
# Tags are required for proper version inference, and this is the only way to pull the tags in
Expand All @@ -29,11 +29,11 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# keep this in sync with the version pinned in .tool-versions
version: '26.1'
- uses: pnpm/action-setup@v2
version: "26.1"
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
Expand All @@ -43,14 +43,14 @@ jobs:
elixir-version: ${{ env.ELIXIR_VERSION }}
- name: Restore dependencies
id: cache-deps
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: components/electric/deps
key: ${{ runner.os }}-mixdeps-${{ hashFiles('components/electric/**/mix.lock') }}

- name: Restore compiled code
id: cache-build
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
components/electric/_build/*/lib
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/starter_cli_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
- main
pull_request:
paths:
- 'pnpm-lock.yaml'
- 'examples/**'
- '!examples/**/**.md'
- "pnpm-lock.yaml"
- "examples/**"
- "!examples/**/**.md"

defaults:
run:
Expand All @@ -27,11 +27,11 @@ jobs:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
Expand Down
Loading

0 comments on commit f360eaf

Please sign in to comment.