Skip to content

Commit

Permalink
Merge pull request #506 from jogelin/init-github-action-config
Browse files Browse the repository at this point in the history
ci: init Github actions config file
  • Loading branch information
manfredsteyer authored Mar 12, 2024
2 parents 8fc5f7e + bbaf18c commit 1c88a77
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
branches:
- main
pull_request:

permissions:
actions: read
contents: read

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm ci
- uses: nrwl/nx-set-shas@v3
# This line is needed for nx affected to work when CI is running on a PR
- run: git branch --track main origin/main

- run: npx nx format:check
- run: npx nx affected -t lint,test,build

0 comments on commit 1c88a77

Please sign in to comment.