2023-09-02 16:17:15 +02:00
|
|
|
# This file is part of Share₂Fedi
|
|
|
|
# https://github.com/kytta/share2fedi
|
|
|
|
#
|
|
|
|
# SPDX-FileCopyrightText: © 2023 Nikita Karamov <me@kytta.dev>
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
2023-08-30 12:33:22 +02:00
|
|
|
name: Check and build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "main"
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- "main"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-30 12:50:57 +02:00
|
|
|
- uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: 8
|
2024-02-07 14:56:06 +01:00
|
|
|
- name: Use Node.js 18
|
2023-08-30 12:33:22 +02:00
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2024-02-07 14:56:06 +01:00
|
|
|
node-version: "^18.17.0"
|
2023-08-30 12:33:22 +02:00
|
|
|
cache: "pnpm"
|
|
|
|
- run: pnpm install
|
|
|
|
- run: pnpm check
|
|
|
|
- run: pnpm build
|