Skip to content

Commit

Permalink
Add workflow to test action
Browse files Browse the repository at this point in the history
  • Loading branch information
jsok committed Aug 23, 2021
1 parent 042ef33 commit 6659d7a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test action

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test-new-version:
name: Test action (recent version)
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v2
- name: setup-cue
uses: ./
with:
version: 0.4.0
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: cue version | grep 0.4.0
test-old-version:
name: Test action (older version)
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v2
- name: setup-cue
uses: ./
with:
version: 0.2.1
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: cue version | grep 0.2.1

0 comments on commit 6659d7a

Please sign in to comment.