Skip to content

Commit

Permalink
Migrate CI away from erb templates (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
anttiharju authored Aug 9, 2024
1 parent 29ee9cd commit 0376e76
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 228 deletions.
24 changes: 0 additions & 24 deletions .github/templates/jobs/build.erb

This file was deleted.

35 changes: 0 additions & 35 deletions .github/templates/jobs/test.erb

This file was deleted.

27 changes: 0 additions & 27 deletions .github/templates/pull_request.yml.erb

This file was deleted.

26 changes: 0 additions & 26 deletions .github/templates/release.yml.erb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
# IMPORTANT NOTE/WARNING!
# Do not make changes to this file, your changes will be overwritten.
#
# This file is automagically generated from:
# - .github/templates/release.yml.erb
# - Templates contained in the smartlyio/github-actions-templates repository
#
# This file can be updated by editing the template file, and running `devbox render workflows`
name: Build

name: Build and release the action

on:
push:
branches: [master]
on: workflow_call

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set Node.js 16.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: "Install"
Expand All @@ -40,11 +29,11 @@ jobs:
npm run package
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set Node.js 16.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: "Build action for test"
Expand Down Expand Up @@ -76,11 +65,11 @@ jobs:
user: github-actions

release:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
name: "Build and release action"
needs: [build, test]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: true
Expand All @@ -89,4 +78,5 @@ jobs:
- name: Release flow
uses: smartlyio/github-actions@release-action-node-v1
with:
dry_run: ${{ github.event_name == 'pull_request' }}
token: "${{ secrets.GITHUB_TOKEN }}"
93 changes: 0 additions & 93 deletions .github/workflows/pull_request.generated.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Pull Request

on:
pull_request:
branches: [master]

jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
secrets: inherit
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Release

on:
push:
branches: [master]

jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
secrets: inherit
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ on:

jobs:
is_locked:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
id: is_locked
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Authenticate with the cluster
env:
KUBERNETES_AUTH_TOKEN: ${{ secrets.KUBERNETES_AUTH_TOKEN }}
Expand Down

0 comments on commit 0376e76

Please sign in to comment.