diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2023-04-29 23:21:54 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-29 23:21:54 +0900 |
| commit | 2d3d986d1306d5c92fe571431f63ed82510f4abe (patch) | |
| tree | 266e42cb86606f93f28b019189e1e06b864fe497 /.github | |
| parent | wip (diff) | |
| download | misskey-2d3d986d1306d5c92fe571431f63ed82510f4abe.tar.gz misskey-2d3d986d1306d5c92fe571431f63ed82510f4abe.tar.bz2 misskey-2d3d986d1306d5c92fe571431f63ed82510f4abe.zip | |
test: Check availability of production build (#10734)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/test-production.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/test-production.yml b/.github/workflows/test-production.yml new file mode 100644 index 0000000000..5243a83777 --- /dev/null +++ b/.github/workflows/test-production.yml @@ -0,0 +1,42 @@ +name: Test (production install and build) + +on: + push: + branches: + - master + - develop + pull_request: + +env: + NODE_ENV: production + +jobs: + production: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + + steps: + - uses: actions/checkout@v3.3.0 + with: + submodules: true + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + run_install: false + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3.6.0 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - run: corepack enable + - run: pnpm i --frozen-lockfile + - name: Check pnpm-lock.yaml + run: git diff --exit-code pnpm-lock.yaml + - name: Copy Configure + run: cp .github/misskey/test.yml .config/default.yml + - name: Build + run: pnpm build |