Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: run CI on latest Node versions #380

Merged
merged 4 commits into from
Oct 30, 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
2 changes: 1 addition & 1 deletion .github/actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
description: 'Node version'
required: false
type: number
default: 16
default: latest

runs:
using: composite
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node_version: [16, 18]
node_version: [18, 20]
include:
- os: windows-latest
node_version: 16
node_version: 18
- os: macos-latest
node_version: 16
node_version: 18
fail-fast: false
env:
LANG: en-us
Expand Down
29 changes: 8 additions & 21 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
name: 'Format Code'
name: Format

on:
workflow_dispatch:
push:
branches:
- main
- next

jobs:
format:
runs-on: ubuntu-latest
name: 'Format: node-16, ubuntu-latest'
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Install Tools & Dependencies
uses: ./.github/actions/install

- name: Format
run: pnpm format

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[ci] format'
branch: ${{ github.head_ref }}
prettier:
if: github.repository_owner == 'withastro'
uses: withastro/automation/.github/workflows/format.yml@main
with:
command: "format"
secrets: inherit