Updated the workflow to support multiple OS and Node.js versions, and upgraded checkout action from v4 to v5.