mirror of
https://github.com/meshtastic/web.git
synced 2026-02-18 22:58:38 -05:00
* fixed tsc errors * fixed tsc errors * fixed tsc errors * fixing tsc errors * fixing more tsc errors * fixing more tsc errors * fixed tsc errors * fixing tsc errors * fixing PR issues * commented out tsc check * completing tsc fixes * updating lockfile * removed react-hooks
69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
name: Pull Request CI
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Deno
|
|
uses: denoland/setup-deno@v2
|
|
with:
|
|
deno-version: v2.x
|
|
|
|
- name: Cache Deno dependencies
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cache/deno
|
|
./deno.lock
|
|
key: ${{ runner.os }}-deno-${{ hashFiles('**/deno.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-deno-
|
|
|
|
- name: Install Dependencies
|
|
run: deno install
|
|
|
|
- name: Cache Dependencies
|
|
run: deno cache src/index.tsx
|
|
|
|
- name: Get changed files
|
|
id: changed-files
|
|
uses: tj-actions/changed-files@v44
|
|
with:
|
|
files: |
|
|
**/*.ts
|
|
**/*.tsx
|
|
|
|
# Uncomment the following lines when you have figured out how to ignore files
|
|
# - name: Type check changed files
|
|
# if: steps.changed-files.outputs.all_changed_files != ''
|
|
# run: deno check ${{ steps.changed-files.outputs.all_changed_files }}
|
|
|
|
- name: Run linter on changed files
|
|
if: steps.changed-files.outputs.all_changed_files != ''
|
|
run: deno task lint ${{ steps.changed-files.outputs.all_changed_files }}
|
|
|
|
- name: Check format on changed files
|
|
if: steps.changed-files.outputs.all_changed_files != ''
|
|
run: deno task format --check ${{ steps.changed-files.outputs.all_changed_files }}
|
|
|
|
- name: Run tests
|
|
run: deno task test
|
|
|
|
- name: Build Package
|
|
run: deno task build
|
|
|
|
- name: Compress build
|
|
run: deno task package
|
|
|
|
- name: Archive compressed build
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: build
|
|
path: dist/build.tar
|