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 c29cb50
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 17 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.
34 changes: 25 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
flake-parts.inputs.nixpkgs.follows = "nixpkgs";
};

outputs = { self, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit self; } {
outputs = inputs@{ self, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-darwin" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
devShells.default = import ./shell.nix { inherit pkgs; };
Expand Down

0 comments on commit c29cb50

Please sign in to comment.