Skip to content

Commit

Permalink
chore: CI updates / optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
rpearce committed Nov 23, 2023
1 parent a857178 commit c093cf7
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,37 @@
name: Node.js CI
name: CI

on: [push, pull_request]
on:
push:
paths-ignore:
- '*.md'
- '*.nix'
- '.all-contributorsrc'
- '.vscode/**'
- 'Dockerfile'
- 'LICENSE'
- 'compose.yml'
pull_request:
paths-ignore:
- '*.md'
- '*.nix'
- '.all-contributorsrc'
- '.vscode/**'
- 'Dockerfile'
- 'LICENSE'
- 'compose.yml'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repo under GH workspace
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use nodejs
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'npm'

- name: Install deps without updating package-lock.json
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-bullseye-slim
FROM node:20-bullseye-slim

USER node

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgs.mkShell {
buildInputs = [
pkgs.nodejs-18_x
pkgs.nodejs-20_x
];
shellHook = ''
export PATH="$PWD/node_modules/.bin/:$PATH"
Expand Down

0 comments on commit c093cf7

Please sign in to comment.