diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 0b582f7..a837c1f 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -7,11 +7,9 @@ name: Docker on: push: - branches: [ 'main' ] + branches: [ main ] # Publish semver tags as releases. tags: [ 'v*.*.*' ] - pull_request: - branches: [ main ] env: # Use docker.io for Docker Hub if empty @@ -73,4 +71,4 @@ jobs: context: . push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/nextjs-build.yml b/.github/workflows/nextjs-build.yml new file mode 100644 index 0000000..77bdf81 --- /dev/null +++ b/.github/workflows/nextjs-build.yml @@ -0,0 +1,30 @@ +name: Build Test + +on: + push: + branches-ignore: + - main + +jobs: + nextjs-ci: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'yarn' + + - name: Install dependencies + run: yarn install + + - name: Build + run: yarn run build \ No newline at end of file