Bump cachix/install-nix-action from 20 to 22 #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2021 The esbuild-plugin-stimulus Authors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# https://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Build | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Build | |
runs-on: ubuntu-18.04 | |
defaults: | |
run: | |
shell: nix-shell --pure --run "set -eo pipefail; source {0}" | |
env: | |
# Store path obtained with: | |
# nix-store -qR "$(nix-build --no-out-link shell.nix)" | grep bash | |
NIX_BUILD_SHELL: /nix/store/pbfraw351mksnkp2ni9c4rkc9cpp89iv-bash-5.1-p12/bin/bash | |
steps: | |
- name: Install Nix | |
uses: cachix/install-nix-action@v22 | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: npm install | |
- name: Test | |
run: npm run test | |
- name: Build | |
run: npm run build |