This repository has been archived by the owner on May 16, 2024. It is now read-only.
feat: added t3-oss validation of environment variables #119
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: Lint | |
on: | |
push: | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- uses: zerodays/action-infisical@v1 | |
with: | |
infisical_token: ${{ secrets.INFISICAL_TOKEN }} | |
environment: "staging" | |
- name: Lint | |
run: | | |
source .env && yarn tsc | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Typecheck | |
run: | | |
yarn tsc |