Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

chore(builds): setup build system #49

Merged
merged 4 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @mozillasocial/web
35 changes: 27 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: ci
name: CI Build Checks

permissions: {}

on:
push:
branches:
- main
branches: [main]
pull_request:
branches:
- main
workflow_dispatch: {}
types: [opened, synchronize]

jobs:
ci:
name: Lint & Test
runs-on: ubuntu-latest

steps:
Expand All @@ -34,6 +32,27 @@ jobs:

- name: 📝 Lint
run: pnpm lint
# Mozilla.Social changes have errors with this check, disabling for now.
# - name: 💪 Type check
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note, disabling for now.

# run: pnpm test:typecheck

- name: 💪 Type check
run: pnpm test:typecheck
docker-build:
name: Build Docker Image
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and export to Docker
uses: docker/build-push-action@v5
with:
context: .
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
46 changes: 0 additions & 46 deletions .github/workflows/docker.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion composables/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export async function signOut() {
method: 'DELETE', // This requires https://github.com/MozillaSocial/mastodon/pull/38 on the Mastodon instance
}
await fetch(signOutUrl, fetchOptions).then(r => r.json())

if (!currentUserHandle.value)
await useRouter().push('/')

Expand Down
Loading