Skip to content

Commit

Permalink
Add main workflow and format files
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins committed Jan 2, 2025
1 parent 6d0f67b commit 0a72602
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 9 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Main CI

on:
pull_request:
branches:
- '**'
workflow_call:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist
4 changes: 2 additions & 2 deletions src/components/Organizers.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ interface Organizer {
}
const organizers = Astro.props.organizers
const imageGlob = await import.meta.glob<{ default: ImageMetadata }>(
const imageGlob = import.meta.glob<{ default: ImageMetadata }>(
'@/images/organizers/*.jpg',
{
eager: true,
}
},
)
const organizerImages = new Map<string, ImageMetadata>()
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sponsor.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { tier, name, url, image } = sponsor
const sponsorId = image.replace(/\.\w+$/, '')
const imageGlob = import.meta.glob<{ default: ImageMetadata }>(
'@/images/sponsors/*.{jpeg,jpg,png,gif,webp,svg}'
'@/images/sponsors/*.{jpeg,jpg,png,gif,webp,svg}',
)
let imageMetadata: ImageMetadata | null = null
Expand Down
8 changes: 4 additions & 4 deletions src/components/conf/LiveReactions.astro
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
const id = button.id

const reactionsContainer = document.querySelector(
'#' + id + ' .reactions'
'#' + id + ' .reactions',
)
const newDOMElements = document.createDocumentFragment()

Expand All @@ -279,7 +279,7 @@
div.style.animationTimingFunction = reaction.curve
div.style.setProperty(
'--starting-angle',
reaction.startingAngle + 'deg'
reaction.startingAngle + 'deg',
)
div.style.setProperty('--animation-duration', '2s')
div.style.setProperty('--travel-distance', -80 + 'px')
Expand Down Expand Up @@ -308,7 +308,7 @@
div.style.animationTimingFunction = reaction.curve
div.style.setProperty(
'--starting-angle',
reaction.startingAngle + 'deg'
reaction.startingAngle + 'deg',
)
div.style.setProperty('--animation-duration', '2s')
div.style.setProperty('--travel-distance', -80 + 'px')
Expand All @@ -322,7 +322,7 @@
if (reactionsContainer) {
reactionsContainer.appendChild(newDOMElements)
const announcementContainer = document.querySelector(
'#' + id + ' .visually-hidden'
'#' + id + ' .visually-hidden',
)

if (!announcementContainer) return
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Header from '@/components/Header.astro'
const TWELVE_HOURS = 1000 * 60 * 60 * 12
const futureEvents = events.filter(
t => new Date(`${t.date}T21:00-08:00`).getTime() + TWELVE_HOURS > Date.now()
t => new Date(`${t.date}T21:00-08:00`).getTime() + TWELVE_HOURS > Date.now(),
)
// const futureEvents = [events.at(-1)]
Expand Down
2 changes: 1 addition & 1 deletion urls.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@
"https://seattlejs.com/_public/images/social/managing-data-in-a-react-application-aug-7-aa8fc7e3d5.png",
"https://seattlejs.com/_public/images/social/introduction-to-typescript-aug-9-d7837798fc.png",
"https://seattlejs.com/_public/images/social/building-ai-apps-aug-10-3a0a15dead.png"
]
]

0 comments on commit 0a72602

Please sign in to comment.