Skip to content

Sy 1092 adjust range link handler #992

Sy 1092 adjust range link handler

Sy 1092 adjust range link handler #992

Workflow file for this run

name: "Test - X"
on:
pull_request:
branches:
- rc
- main
push:
branches:
- rc
- main
workflow_dispatch:
jobs:
test-go:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Diff Changes
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
changed:
- 'x/go/**'
- '.github/workflows/test.x.yaml'
- name: Set up Go
uses: actions/setup-go@v5
if: steps.filter.outputs.changed == 'true'
with:
go-version-file: "go.work"
cache-dependency-path: |
"alamos/go/go.sum"
"aspen/go.sum"
"cesium/go.sum"
"freighter/go/go.sum"
"synnax/go.sum"
"x/go/go.sum"
- name: Test
if: steps.filter.outputs.changed == 'true'
run: go test -v --covermode=atomic --coverprofile=coverage.txt ./...
working-directory: ./x/go
- name: Upload Coverage
if: steps.filter.outputs.changed == 'true'
uses: codecov/codecov-action@v3
with:
directory: ./x/go
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
flags: gox
test-typescript:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Diff Changes
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
changed:
- 'x/typescript/**'
- '.github/workflows/test.x.yaml'
- name: Setup pnpm
if: steps.filter.outputs.changed == 'true'
uses: pnpm/action-setup@v3
with:
version: 9
- name: Setup Node
if: steps.filter.outputs.changed == 'true'
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install Dependencies
if: steps.filter.outputs.changed == 'true'
run: pnpm i
- name: Test
if: steps.filter.outputs.changed == 'true'
run: pnpm cov:x
- name: Upload Coverage
if: steps.filter.outputs.changed == 'true'
uses: codecov/codecov-action@v3
with:
directory: ./x/ts
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
flags: xts