Skip to content

Commit

Permalink
add script
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyoshiaki committed May 30, 2024
1 parent 474f352 commit 47ef09d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: prepare
env:
APP_ID: ${{ secrets.APP_ID }}
SECRET: ${{ secrets.SECRET }}
run: |
sudo apt-get update
sudo apt-get -y install build-essential git gobject-introspection libgirepository1.0-dev libcairo2 libcairo2-dev libavdevice-dev libavfilter-dev libopus-dev libvpx-dev pkg-config libsrtp2-dev libasound2-dev libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-pulseaudio gir1.2-gstreamer-1.0
sudo corepack enable npm
npm i
npm run submodule:install
npx zx ./scripts/create_env.mjs
- name: test
env:
CI: true
Expand Down
11 changes: 11 additions & 0 deletions scripts/create_env.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { writeFileSync } from 'fs';

const { APP_ID, SECRET } = process.env;

writeFileSync(
'env.ts',
`export const appId = '${APP_ID}';
export const secret = '${SECRET}';
`
);

0 comments on commit 47ef09d

Please sign in to comment.