Skip to content

Commit

Permalink
L-168 Check if package is buildable (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrHeinz authored Oct 4, 2023
1 parent ca1ae20 commit 64198fe
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm

- name: Install dependencies
run: npm install

- name: Build ZIP archive
run: npm run build

- name: Check ZIP existence
uses: andstor/file-existence-action@v2
with:
files: build/logtail-aws-lambda.zip

- name: Check for uncommitted changes after build (eg. package-lock.json)
run: '[[ -z "$(git status --porcelain)" ]] || (git status; exit 1)'

0 comments on commit 64198fe

Please sign in to comment.